diff options
author | vaxerski <[email protected]> | 2022-12-03 14:45:05 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-12-03 14:45:10 +0000 |
commit | 056a45d035781a74ae80d5a5f0247f3338dca05d (patch) | |
tree | 0b1c5b1b5827273f162713ee673142fe4ace284a | |
parent | fbc839e8d9a6a55b25e68854a6ee9d7769353088 (diff) | |
download | Hyprland-056a45d035781a74ae80d5a5f0247f3338dca05d.tar.gz Hyprland-056a45d035781a74ae80d5a5f0247f3338dca05d.zip |
fix shader destroy id unset
-rw-r--r-- | src/render/Shader.cpp | 4 |
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 |