diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-10-29 02:02:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-10-29 02:02:04 +0300 |
commit | a6d18b282ab916c6536dc25516affeb9200043b6 (patch) | |
tree | 9980735a47cb2118999fb4f4dceaa52bf9f4fae7 /src/render/shaders | |
parent | 98c74738f21d7ae256f1273b6c1614ee64e2a3ad (diff) | |
download | plus-a6d18b282ab916c6536dc25516affeb9200043b6.tar.gz plus-a6d18b282ab916c6536dc25516affeb9200043b6.tar.bz2 plus-a6d18b282ab916c6536dc25516affeb9200043b6.tar.xz plus-a6d18b282ab916c6536dc25516affeb9200043b6.zip |
Fix code style.
Diffstat (limited to 'src/render/shaders')
-rw-r--r-- | src/render/shaders/shader.cpp | 2 | ||||
-rw-r--r-- | src/render/shaders/shaderprogram.cpp | 2 | ||||
-rw-r--r-- | src/render/shaders/shadersmanager.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/render/shaders/shader.cpp b/src/render/shaders/shader.cpp index 38238a189..8464103d7 100644 --- a/src/render/shaders/shader.cpp +++ b/src/render/shaders/shader.cpp @@ -34,7 +34,7 @@ Shader::Shader(const unsigned int id) : Shader::~Shader() { - if (mShaderId != 0u) + if (mShaderId != 0U) mglDeleteShader(mShaderId); } diff --git a/src/render/shaders/shaderprogram.cpp b/src/render/shaders/shaderprogram.cpp index 42f0b725c..5d611de0e 100644 --- a/src/render/shaders/shaderprogram.cpp +++ b/src/render/shaders/shaderprogram.cpp @@ -43,7 +43,7 @@ ShaderProgram::ShaderProgram(const unsigned int id, ShaderProgram::~ShaderProgram() { - if (mProgramId != 0u) + if (mProgramId != 0U) mglDeleteProgram(mProgramId); if (mVertex != nullptr) mVertex->decRef(); diff --git a/src/render/shaders/shadersmanager.cpp b/src/render/shaders/shadersmanager.cpp index 86ede490e..5ec7b9680 100644 --- a/src/render/shaders/shadersmanager.cpp +++ b/src/render/shaders/shadersmanager.cpp @@ -86,7 +86,7 @@ ShaderProgram *ShadersManager::createProgram(const std::string &vertex, } GLuint programId = mglCreateProgram(); - if (programId == 0u) + if (programId == 0U) { vertexShader->decRef(); fragmentShader->decRef(); |