mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 13:49:49 +01:00
fix shader destroy id unset
This commit is contained in:
parent
fbc839e8d9
commit
056a45d035
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue