summaryrefslogtreecommitdiff
path: root/src/render/shaders/shaderprogram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/shaders/shaderprogram.cpp')
-rw-r--r--src/render/shaders/shaderprogram.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/shaders/shaderprogram.cpp b/src/render/shaders/shaderprogram.cpp
index bd19230b5..52cb025d7 100644
--- a/src/render/shaders/shaderprogram.cpp
+++ b/src/render/shaders/shaderprogram.cpp
@@ -43,11 +43,11 @@ ShaderProgram::ShaderProgram(const unsigned int id,
ShaderProgram::~ShaderProgram()
{
- if (mProgramId)
+ if (mProgramId != 0u)
mglDeleteProgram(mProgramId);
- if (mVertex)
+ if (mVertex != nullptr)
mVertex->decRef();
- if (mFragment)
+ if (mFragment != nullptr)
mFragment->decRef();
}