summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/mobileopengl2graphics.cpp2
-rw-r--r--src/render/modernopenglgraphics.cpp2
2 files changed, 2 insertions, 2 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.");
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.");