Kaydet (Commit) 8ecfdf9c authored tarafından Michael Meeks's avatar Michael Meeks

vcl: disable OpenGL usage during build.

Change-Id: I3a534578df727f2aaab6e36839f0e62e6fc8f208
üst 1e0c847a
...@@ -382,7 +382,16 @@ bool OpenGLHelper::isVCLOpenGLEnabled() ...@@ -382,7 +382,16 @@ bool OpenGLHelper::isVCLOpenGLEnabled()
return false; return false;
static bool bEnableGLEnv = !!getenv("SAL_ENABLEGL"); 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; return bEnable;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment