diff options
Diffstat (limited to 'include/vcl/opengl/OpenGLContext.hxx')
-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; |