diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-11-16 16:59:04 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-11-16 17:00:57 +0100 |
commit | 8ecfdf9c23b79ffd50752defc78889736263451d (patch) | |
tree | 3310be3cfb9df222cf3f008a274e4bd33dcd4668 /vcl/source/opengl/OpenGLHelper.cxx | |
parent | 1e0c847a6049e923e40954fcc4339e6989d80a69 (diff) |
vcl: disable OpenGL usage during build.
Change-Id: I3a534578df727f2aaab6e36839f0e62e6fc8f208
Diffstat (limited to 'vcl/source/opengl/OpenGLHelper.cxx')
-rw-r--r-- | vcl/source/opengl/OpenGLHelper.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx index 3dd5df807365..fda89c335c27 100644 --- a/vcl/source/opengl/OpenGLHelper.cxx +++ b/vcl/source/opengl/OpenGLHelper.cxx @@ -382,7 +382,16 @@ bool OpenGLHelper::isVCLOpenGLEnabled() return false; static bool bEnableGLEnv = !!getenv("SAL_ENABLEGL"); - bool bEnable = bEnableGLEnv || officecfg::Office::Common::VCL::UseOpenGL::get(); + + bool bEnable = bEnableGLEnv; + + static bool bDuringBuild = getenv("VCL_HIDE_WINDOWS"); + if (bDuringBuild && !bEnable /* env. enable overrides */) + bEnable = false; + + else if (officecfg::Office::Common::VCL::UseOpenGL::get()) + bEnable = true; + return bEnable; } |