summaryrefslogtreecommitdiff
path: root/src/render/mobileopengl2graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-08 23:18:03 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-08 23:18:03 +0300
commit7380aa6e86b51ef62530bea5d6f6f63244dffc4a (patch)
tree1b9915284b2b9c3e0969ae05f54a53adba72e527 /src/render/mobileopengl2graphics.cpp
parent7e66a4606bb15d98197f71245fe191d03152ee5f (diff)
downloadmanaverse-7380aa6e86b51ef62530bea5d6f6f63244dffc4a.tar.gz
manaverse-7380aa6e86b51ef62530bea5d6f6f63244dffc4a.tar.bz2
manaverse-7380aa6e86b51ef62530bea5d6f6f63244dffc4a.tar.xz
manaverse-7380aa6e86b51ef62530bea5d6f6f63244dffc4a.zip
Add some missing checks and remove useless checks.
Diffstat (limited to 'src/render/mobileopengl2graphics.cpp')
-rw-r--r--src/render/mobileopengl2graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/mobileopengl2graphics.cpp b/src/render/mobileopengl2graphics.cpp
index 69c4c741c..a1bcd00b0 100644
--- a/src/render/mobileopengl2graphics.cpp
+++ b/src/render/mobileopengl2graphics.cpp
@@ -172,7 +172,7 @@ void MobileOpenGL2Graphics::postInit() restrict2
logger->safeError("Shader creation error. See manaplus.log.");
}
mProgramId = mProgram->getProgramId();
- if (!mProgram)
+ if (!mProgramId)
logger->safeError("Shaders compilation error.");
logger->log("Shaders compilation done.");