summaryrefslogtreecommitdiffstats
path: root/vcl/opengl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-11-05 09:42:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-11-05 12:47:34 +0100
commit70f710f8343f58bd4876dead79d32129ad3ebaab (patch)
treef0e4e34afa979e8f1a799518e6d4f0ec5b7e84b7 /vcl/opengl
parentThis is no longer unsupported (diff)
downloadcore-70f710f8343f58bd4876dead79d32129ad3ebaab.tar.gz
core-70f710f8343f58bd4876dead79d32129ad3ebaab.zip
Fix for --enable-debug --disable-assert-always-abort
...found by <https://ci.libreoffice.org//job/lo_tb_random_config_linux/1573/> Change-Id: I805457f4da6d91a1ee27b0e4da999448950ecf40 Reviewed-on: https://gerrit.libreoffice.org/62875 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/salbmp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx
index 67b49e1ce185..a2cf2e25b388 100644
--- a/vcl/opengl/salbmp.cxx
+++ b/vcl/opengl/salbmp.cxx
@@ -596,7 +596,7 @@ bool OpenGLSalBitmap::ReadTexture()
maTexture.Read(nFormat, nType, pData);
-#if OSL_DEBUG_LEVEL > 0
+#if OSL_DEBUG_LEVEL > 0 && !defined NDEBUG
// If we read over the end of pData we have a real hidden memory
// corruption problem !
size_t nCanary = mnBytesPerRow * mnHeight;