diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-11-10 16:02:31 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-11-10 16:51:12 +0000 |
commit | 45c6cb5f083934f311561599d34ce771bbabf835 (patch) | |
tree | 09a6429a1929a3204b52c0925e4baa2b65de9666 /vcl/win | |
parent | mpPixmap uninitialized in one ctor (diff) | |
download | core-45c6cb5f083934f311561599d34ce771bbabf835.tar.gz core-45c6cb5f083934f311561599d34ce771bbabf835.zip |
vcl: cleanup the opengl selection API.
Change-Id: Icebf3c7d2911b27e29d2259b780a04048b293b3c
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/source/gdi/salgdi.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/win/source/gdi/salgdi.cxx b/vcl/win/source/gdi/salgdi.cxx index 4e3b76f93455..549a02f78808 100644 --- a/vcl/win/source/gdi/salgdi.cxx +++ b/vcl/win/source/gdi/salgdi.cxx @@ -589,9 +589,7 @@ WinSalGraphics::WinSalGraphics(WinSalGraphics::Type eType, bool bScreen, HWND hW mbFontKernInit(false), mnPenWidth(GSL_PEN_WIDTH) { - static bool bOpenGLPossible = OpenGLHelper::supportsVCLOpenGL(); - bool bUseOpenGL = bOpenGLPossible && mbWindow ? officecfg::Office::Common::VCL::UseOpenGL::get() : false; - if (bUseOpenGL) + if (OpenGLHelper::isVCLOpenGLEnabled()) mpImpl.reset(new WinOpenGLSalGraphicsImpl(*this)); else mpImpl.reset(new WinSalGraphicsImpl(*this)); |