Close shader file handles once done

This commit is contained in:
Archie Hilton 2024-05-14 21:48:33 +01:00
parent aa8c0f8594
commit f5883d0219
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ static GLuint compile_shader(GLenum shader_type, const std::string &path) {
std::string shader_source_str = shader_source_stream.str();
const GLchar *shader_source = shader_source_str.c_str();
shader_file_handle.close();
GLuint shader_id = glCreateShader(shader_type);
if (shader_id == 0) {