summaryrefslogtreecommitdiff
path: root/drawinglayer/source
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-09-03 23:17:24 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-09-03 23:17:24 +0900
commit6eff03b7d8b77b797f57f2344163ff67a99631f9 (patch)
tree5326115e48e1cc683d78e4b3e5bcc45b492b817e /drawinglayer/source
parentc1f47481eb78df3d73bed1da5020ed6ea565a999 (diff)
disable caching of virtual devices when OpenGL is enabled
Change-Id: I15c5cca8c31d81026111a3fa3f050f53057d76b7
Diffstat (limited to 'drawinglayer/source')
-rw-r--r--drawinglayer/source/processor2d/vclhelperbufferdevice.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx
index 93919c0019a2..0994646e5937 100644
--- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx
+++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx
@@ -27,6 +27,7 @@
#include <vcl/lazydelete.hxx>
#include <vcl/dibtools.hxx>
+#include <vcl/opengl/OpenGLWrapper.hxx>
// buffered VDev usage
@@ -188,7 +189,12 @@ namespace
maFreeBuffers.push_back(&rDevice);
SAL_WARN_IF(maFreeBuffers.size() > 1000, "drawinglayer", "excessive cached buffers, "
<< maFreeBuffers.size() << " entries!");
- Start();
+
+ if (OpenGLWrapper::isVCLOpenGLEnabled())
+ Invoke();
+ else
+ Start();
+
}
void VDevBuffer::Invoke()