diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-08 23:18:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-08 23:18:03 +0300 |
commit | 7380aa6e86b51ef62530bea5d6f6f63244dffc4a (patch) | |
tree | 1b9915284b2b9c3e0969ae05f54a53adba72e527 /src/render/modernopenglgraphics.cpp | |
parent | 7e66a4606bb15d98197f71245fe191d03152ee5f (diff) | |
download | plus-7380aa6e86b51ef62530bea5d6f6f63244dffc4a.tar.gz plus-7380aa6e86b51ef62530bea5d6f6f63244dffc4a.tar.bz2 plus-7380aa6e86b51ef62530bea5d6f6f63244dffc4a.tar.xz plus-7380aa6e86b51ef62530bea5d6f6f63244dffc4a.zip |
Add some missing checks and remove useless checks.
Diffstat (limited to 'src/render/modernopenglgraphics.cpp')
-rw-r--r-- | src/render/modernopenglgraphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index b82b93276..6f02f022c 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -175,7 +175,7 @@ void ModernOpenGLGraphics::postInit() restrict2 logger->safeError("Shader creation error. See manaplus.log."); } mProgramId = mProgram->getProgramId(); - if (!mProgram) + if (!mProgramId) logger->error("Shaders compilation error."); logger->log("Shaders compilation done."); |