summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/vcl/opengl/OpenGLContext.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx
index 36efe03e5059..52ef5d0099e6 100644
--- a/include/vcl/opengl/OpenGLContext.hxx
+++ b/include/vcl/opengl/OpenGLContext.hxx
@@ -200,6 +200,10 @@ public:
return mbRequestLegacyContext;
}
+ /// VCL promiscuously re-uses its own contexts:
+ void setVCLOnly() { mbVCLOnly = true; }
+ bool isVCLOnly() { return mbVCLOnly; }
+
bool supportMultiSampling() const;
static SystemWindowData generateWinData(vcl::Window* pParent, bool bRequestLegacyContext);
@@ -225,6 +229,7 @@ private:
int mnRefCount;
bool mbRequestLegacyContext;
bool mbUseDoubleBufferedRendering;
+ bool mbVCLOnly;
int mnFramebufferCount;
OpenGLFramebuffer* mpCurrentFramebuffer;