Unload opengl shader program on object disposal
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user