mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:45:58 +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() {
|
CShader::~CShader() {
|
||||||
// destroy shader
|
// destroy shader
|
||||||
destroy();
|
destroy();
|
||||||
|
|
||||||
program = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CShader::destroy() {
|
void CShader::destroy() {
|
||||||
glDeleteProgram(program);
|
glDeleteProgram(program);
|
||||||
|
|
||||||
|
program = 0;
|
||||||
}
|
}
|
Loading…
Reference in a new issue