[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-5-2+backports' - vcl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jan 30 15:40:32 UTC 2019


 vcl/source/opengl/OpenGLHelper.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 657f2d1558827e2c886e757df893c7ca067d4e7d
Author:     Markus Mohrhard <markus.mohrhard at googlemail.com>
AuthorDate: Sat Sep 24 23:50:13 2016 +0200
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Wed Jan 30 16:40:07 2019 +0100

    fix the OpenGL selection logic
    
    Now OpenGL is again not used on the build bots.
    
    Change-Id: I7369394c44ab1e16135e2b22f7f8effca0f25d3c
    (cherry picked from commit 1a4555f3b3572f398c33bffd1ed2a40705431733)
    Reviewed-on: https://gerrit.libreoffice.org/67160
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx
index 73d587c64744..25ef12f69623 100644
--- a/vcl/source/opengl/OpenGLHelper.cxx
+++ b/vcl/source/opengl/OpenGLHelper.cxx
@@ -993,12 +993,13 @@ bool OpenGLHelper::isVCLOpenGLEnabled()
     bForceOpenGL = !!getenv("SAL_FORCEGL") || officecfg::Office::Common::VCL::ForceOpenGL::get();
 
     bool bRet = false;
+    bool bSupportsVCLOpenGL = supportsVCLOpenGL();
     // always call supportsVCLOpenGL to de-zombie the glxtest child process on X11
-    if (supportsVCLOpenGL() || bForceOpenGL)
+    if (bForceOpenGL)
     {
         bRet = true;
     }
-    else
+    else if (bSupportsVCLOpenGL)
     {
         static bool bEnableGLEnv = !!getenv("SAL_ENABLEGL");
 


More information about the Libreoffice-commits mailing list