mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 13:25:42 +03:00
fix shader destroy id unset
This commit is contained in:
parent
fbc839e8d9
commit
056a45d035
@ -15,10 +15,10 @@ GLint CShader::getUniformLocation(const std::string& unif) {
|
||||
CShader::~CShader() {
|
||||
// destroy shader
|
||||
destroy();
|
||||
|
||||
program = 0;
|
||||
}
|
||||
|
||||
void CShader::destroy() {
|
||||
glDeleteProgram(program);
|
||||
|
||||
program = 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user