mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-09 08:31:54 -07:00
destroy program in shader destructor
This commit is contained in:
@@ -10,4 +10,11 @@ GLint CShader::getUniformLocation(const std::string& unif) {
|
||||
}
|
||||
|
||||
return itpos->second;
|
||||
}
|
||||
|
||||
CShader::~CShader() {
|
||||
// destroy shader
|
||||
if (program != 0) {
|
||||
glDeleteProgram(program);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user