diff --git a/src/GLProgramLoader.cc b/src/GLProgramLoader.cc index 48da08f..9d07654 100644 --- a/src/GLProgramLoader.cc +++ b/src/GLProgramLoader.cc @@ -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) {