diff options
-rw-r--r-- | drawinglayer/source/processor2d/vclhelperbufferdevice.cxx | 8 |
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() |