summaryrefslogtreecommitdiff
path: root/include/vcl/opengl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-09-04 17:13:30 +0300
committerTor Lillqvist <tml@collabora.com>2015-09-04 17:35:19 +0300
commitda26fa240994377eec0a1b1cdb777ef49b36826f (patch)
treef904b2dc40d9843f5399bb9bbc146a8132cef40f /include/vcl/opengl
parent20f1ba114c56b13659bb3ccd3dfdbcfc15a3d10e (diff)
Avoid OpenGL information logging when not using OpenGL
Change-Id: I7ce9b5cedc620c14e6315acde66aefe60e8bd5ab
Diffstat (limited to 'include/vcl/opengl')
-rw-r--r--include/vcl/opengl/OpenGLHelper.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/opengl/OpenGLHelper.hxx b/include/vcl/opengl/OpenGLHelper.hxx
index 9f725e694605..a4729a7633ab 100644
--- a/include/vcl/opengl/OpenGLHelper.hxx
+++ b/include/vcl/opengl/OpenGLHelper.hxx
@@ -26,7 +26,7 @@
/// Helper to do a SAL_INFO as well as a GL log.
#define VCL_GL_INFO(area,stream) \
do { \
- if (SAL_DETAIL_ENABLE_LOG_INFO) \
+ if (SAL_DETAIL_ENABLE_LOG_INFO && OpenGLHelper::isVCLOpenGLEnabled()) \
{ \
::std::ostringstream detail_stream; \
detail_stream << stream; \