diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-12-11 18:18:50 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-12-14 01:45:55 +0000 |
commit | 6b443b08cbe50c228fee0d555df7dc40f0c8bbc5 (patch) | |
tree | ebd634a1c246247a18bd3d248eba7f9729476704 /include | |
parent | 166b7ef486ed7bdb41b728ea3a5196bab3201b1b (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.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx index fb09bd586b85..a6d753f0a391 100644 --- a/include/vcl/opengl/OpenGLContext.hxx +++ b/include/vcl/opengl/OpenGLContext.hxx @@ -204,6 +204,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); @@ -229,6 +233,7 @@ private: int mnRefCount; bool mbRequestLegacyContext; bool mbUseDoubleBufferedRendering; + bool mbVCLOnly; int mnFramebufferCount; OpenGLFramebuffer* mpCurrentFramebuffer; |