Close shader file handles once done
This commit is contained in:
parent
aa8c0f8594
commit
f5883d0219
|
@ -24,6 +24,8 @@ static GLuint compile_shader(GLenum shader_type, const std::string &path) {
|
||||||
std::string shader_source_str = shader_source_stream.str();
|
std::string shader_source_str = shader_source_stream.str();
|
||||||
const GLchar *shader_source = shader_source_str.c_str();
|
const GLchar *shader_source = shader_source_str.c_str();
|
||||||
|
|
||||||
|
shader_file_handle.close();
|
||||||
|
|
||||||
GLuint shader_id = glCreateShader(shader_type);
|
GLuint shader_id = glCreateShader(shader_type);
|
||||||
|
|
||||||
if (shader_id == 0) {
|
if (shader_id == 0) {
|
||||||
|
|
Loading…
Reference in New Issue