diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-09-04 12:25:09 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-09-04 15:34:16 +0200 |
commit | 50238bddf0e95169007cb90479cca86849a19007 (patch) | |
tree | 9d48582fb1d2ffbb98d9bc290462d8ccc11a78e4 /vcl/inc/salinst.hxx | |
parent | 55c676623310ab8a44e426186f4339f6efd118dd (diff) |
tdf#144289 invert / disable default OpenGL support
... and as a result drop setting a default in SalSvpInstance.
This is also more consistent: now you must explicitly implement
CreateOpenGLContext() and set "m_bSupportsOpenGL = true".
Change-Id: I591580bf134907213b8308e0843c278d2f470ed3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121632
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc/salinst.hxx')
-rw-r--r-- | vcl/inc/salinst.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/inc/salinst.hxx b/vcl/inc/salinst.hxx index 1c61dc029cc6..9694d30f4939 100644 --- a/vcl/inc/salinst.hxx +++ b/vcl/inc/salinst.hxx @@ -80,7 +80,7 @@ private: protected: bool m_bSupportsBitmap32 = false; - bool m_bSupportsOpenGL = true; + bool m_bSupportsOpenGL = false; public: SalInstance(std::unique_ptr<comphelper::SolarMutex> pMutex); @@ -158,6 +158,7 @@ public: // may return NULL to disable session management, only used by X11 backend virtual std::unique_ptr<SalSession> CreateSalSession(); + // also needs to set m_bSupportsOpenGL = true in your SalInstance implementation! virtual OpenGLContext* CreateOpenGLContext(); virtual weld::Builder* CreateBuilder(weld::Widget* pParent, const OUString& rUIRoot, const OUString& rUIFile); |