disable caching of virtual devices when OpenGL is enabled
Change-Id: I15c5cca8c31d81026111a3fa3f050f53057d76b7
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user