From 95bbac8791cd0dbd62fc18974a5ba3b91cf61a04 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 1 Nov 2022 18:46:51 +0000 Subject: [PATCH] remove redundant check in CShader --- src/render/Shader.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/render/Shader.cpp b/src/render/Shader.cpp index 48f3fdcc..f965e681 100644 --- a/src/render/Shader.cpp +++ b/src/render/Shader.cpp @@ -14,7 +14,5 @@ GLint CShader::getUniformLocation(const std::string& unif) { CShader::~CShader() { // destroy shader - if (program) { - glDeleteProgram(program); - } + glDeleteProgram(program); } \ No newline at end of file