aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-12-03 14:45:05 +0000
committervaxerski <[email protected]>2022-12-03 14:45:10 +0000
commit056a45d035781a74ae80d5a5f0247f3338dca05d (patch)
tree0b1c5b1b5827273f162713ee673142fe4ace284a
parentfbc839e8d9a6a55b25e68854a6ee9d7769353088 (diff)
downloadHyprland-056a45d035781a74ae80d5a5f0247f3338dca05d.tar.gz
Hyprland-056a45d035781a74ae80d5a5f0247f3338dca05d.zip
fix shader destroy id unset
-rw-r--r--src/render/Shader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/Shader.cpp b/src/render/Shader.cpp
index 03b13055..9070553a 100644
--- a/src/render/Shader.cpp
+++ b/src/render/Shader.cpp
@@ -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;
} \ No newline at end of file