Unload opengl shader program on object disposal

This commit is contained in:
Mario Hüttel 2020-03-17 23:27:57 +01:00
parent ec17d18154
commit d15fb54804
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@ OpenGlShaderProgram::OpenGlShaderProgram(std::string vertex_file, std::string ge
this->compiled = false;
}
OpenGlShaderProgram::~OpenGlShaderProgram()
{
this->unload();
}
char *load_shader_program_from_file(std::string file_name)
{
return NULL;