diff options
Diffstat (limited to 'src/render/Shader.cpp')
-rw-r--r-- | src/render/Shader.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/Shader.cpp b/src/render/Shader.cpp index f965e681..03b13055 100644 --- a/src/render/Shader.cpp +++ b/src/render/Shader.cpp @@ -14,5 +14,11 @@ GLint CShader::getUniformLocation(const std::string& unif) { CShader::~CShader() { // destroy shader + destroy(); + + program = 0; +} + +void CShader::destroy() { glDeleteProgram(program); }
\ No newline at end of file |