summaryrefslogtreecommitdiff
path: root/vcl/source/opengl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-04-14 18:01:59 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-04-16 17:09:02 +0200
commitdaaef8cbe4d3a67996c6410c24eca19ecf0a810e (patch)
treebf0304047e3cbda7ecca12a2d9b3d063089128a6 /vcl/source/opengl
parent85847b1bd7245de246fa419ec686b8bead660497 (diff)
abort() in dbgutil mode if OpenGL shader compilation fails
Otherwise it's quite annoying to miss e.g. a typo in the shader code if the code falls back to another way of handling the operation. Change-Id: I585be85f739929f0f422dc031a36dc83077f6820 Reviewed-on: https://gerrit.libreoffice.org/70771 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/source/opengl')
-rw-r--r--vcl/source/opengl/OpenGLHelper.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx
index 2b2e8ea4d783..0a5d58142978 100644
--- a/vcl/source/opengl/OpenGLHelper.cxx
+++ b/vcl/source/opengl/OpenGLHelper.cxx
@@ -135,6 +135,10 @@ namespace {
}
else
SAL_WARN("vcl.opengl", rDetail << " shader: " << rName << " compile " << nId << " failed without error log");
+
+#ifdef DBG_UTIL
+ abort();
+#endif
return 0;
}
}