summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-12-11 18:18:50 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-12-11 20:39:15 +0000
commit6c68b71058263be74197a961fd7dfd2b43caf22d (patch)
tree01d0ac419e0fa9bb52c0753a82f531a287af9b88 /vcl/inc
parent39b2c407610a9a4197960ac259b4284f01459b3c (diff)
vcl: use a custom tag for VCL OpenGLContext's to avoid re-use.
Other code is out of legacy mode now, so can't legacy as a proxy. Change-Id: Ie3807a3af680b707f2f08d058db955bc9cae6c2b Reviewed-on: https://gerrit.libreoffice.org/20647 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/openglgdiimpl.hxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx
index a3899de77719..fc9507108a00 100644
--- a/vcl/inc/openglgdiimpl.hxx
+++ b/vcl/inc/openglgdiimpl.hxx
@@ -72,9 +72,6 @@ protected:
OpenGLFramebuffer* mpFramebuffer;
OpenGLProgram* mpProgram;
- /// Is it someone else's context we shouldn't be fiddling with ?
- static bool IsForeignContext(const rtl::Reference<OpenGLContext> &xContext);
-
/// This idle handler is used to swap buffers after rendering.
OpenGLFlushIdle *mpFlush;
@@ -174,7 +171,7 @@ protected:
static bool UseContext( const rtl::Reference<OpenGLContext> &pContext )
{
return pContext->isInitialized() && // not released by the OS etc.
- IsForeignContext( pContext ); // a genuine VCL context.
+ pContext->isVCLOnly();
}
public: