[Libreoffice-commits] core.git: sd/qa

Tor Lillqvist tml at collabora.com
Fri Jun 3 14:01:46 UTC 2016


 sd/qa/unit/export-tests.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit f062b89b277a0830f038cafdd13bd074b5188455
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri Jun 3 16:49:30 2016 +0300

    Try to fix tinderbox build running in RDP session from Linux on Windows pre-10
    
    It is a complicated scenario, but I think something like this is going
    on:
    
    Before Windows 10, only OpenGL 1.1 was supported in RDP sessions. Our
    code detects RDP and tries to disable the use of OpenGL in that
    case. This code for this is in the neighbourhood of the blacklisting
    of OpenGL implementations. But the use of OpenGL in GLTF and chart2
    does not go through code paths that would take that into
    consideration, so it tries to use OpenGL anyway, and eventually we end
    up in InitGLEW(), where the recently added check for OpenGL 3.0 or
    newer causes an (intentional) abrupt termination of the process.
    
    Change-Id: Ia57bfc8d2cefe4e6d7a00282973608d17967d3fd

diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx
index a80617c..150e0b5 100644
--- a/sd/qa/unit/export-tests.cxx
+++ b/sd/qa/unit/export-tests.cxx
@@ -30,7 +30,6 @@
 
 #include <rsc/rscsfx.hxx>
 
-
 #include <svx/svdoutl.hxx>
 #include <svx/svdotext.hxx>
 #include <svx/svdoashp.hxx>
@@ -44,6 +43,8 @@
 #include <unotools/ucbstreamhelper.hxx>
 #include <rtl/ustring.hxx>
 
+#include <vcl/opengl/OpenGLWrapper.hxx>
+
 #include <com/sun/star/drawing/XDrawPage.hpp>
 #include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
 #include <com/sun/star/animations/XAnimationNodeSupplier.hpp>
@@ -445,6 +446,9 @@ void SdExportTest::testTransparentBackground()
 
 void SdExportTest::testMediaEmbedding()
 {
+    if (!OpenGLWrapper::isVCLOpenGLEnabled())
+        return;
+
     ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("/sd/qa/unit/data/media_embedding.odp"), ODP);
 
 #if HAVE_FEATURE_GLTF


More information about the Libreoffice-commits mailing list