summaryrefslogtreecommitdiff
path: root/src/render/modernopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-18 12:41:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-18 12:41:20 +0300
commit75e4c0b3b2b6497c4f81bfe5695e6570932162e9 (patch)
tree39726638167458567f3252d792dc9e5478625190 /src/render/modernopenglgraphics.cpp
parent3fbd6dba28d48db538bfe12493e205013fcfe2ae (diff)
downloadmv-75e4c0b3b2b6497c4f81bfe5695e6570932162e9.tar.gz
mv-75e4c0b3b2b6497c4f81bfe5695e6570932162e9.tar.bz2
mv-75e4c0b3b2b6497c4f81bfe5695e6570932162e9.tar.xz
mv-75e4c0b3b2b6497c4f81bfe5695e6570932162e9.zip
Add error logging if shader compilation failure.
Diffstat (limited to 'src/render/modernopenglgraphics.cpp')
-rw-r--r--src/render/modernopenglgraphics.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp
index a166f64b9..96ce5e1ef 100644
--- a/src/render/modernopenglgraphics.cpp
+++ b/src/render/modernopenglgraphics.cpp
@@ -162,6 +162,11 @@ void ModernOpenGLGraphics::postInit()
logger->log("Compiling shaders");
mProgram = shaders.getSimpleProgram();
+ if (!mProgram)
+ {
+ graphicsManager.logError();
+ logger->safeError("Shader creation error. See manaplus.log.");
+ }
mProgramId = mProgram->getProgramId();
if (!mProgram)
logger->error("Shaders compilation error.");