disable caching of virtual devices when OpenGL is enabled

Change-Id: I15c5cca8c31d81026111a3fa3f050f53057d76b7
This commit is contained in:
Tomaž Vajngerl
2015-09-03 23:17:24 +09:00
parent c1f47481eb
commit 6eff03b7d8

View File

@@ -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()