summaryrefslogtreecommitdiffstats
path: root/debian/patches/sc-opengl-optional.diff
blob: 20a5cbe21186525ca9afd0c21efb4caf6ab0655a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index c657bd81defc..d5678c089f41 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -71,6 +71,8 @@
 #include <editutil.hxx>
 #include <docsh.hxx>
 
+#include <config_features.h>
+
 tools::SvRef<ScDocShell>  ScGlobal::xDrawClipDocShellRef;
 SvxSearchItem*  ScGlobal::pSearchItem = nullptr;
 ScAutoFormat*   ScGlobal::pAutoFormat = nullptr;
@@ -472,7 +474,11 @@ void ScGlobal::InitPPT()
 {
     OutputDevice* pDev = Application::GetDefaultDevice();
 
-    if (comphelper::LibreOfficeKit::isActive() || OpenGLWrapper::isVCLOpenGLEnabled())
+    if (comphelper::LibreOfficeKit::isActive()
+#if defined HAVE_FEATURE_OPENGL && defined HAVE_FEATURE_UI
+|| OpenGLWrapper::isVCLOpenGLEnabled()
+#endif
+)
     {
         // LOK: the below limited precision is not enough for RowColumnHeader.
         // OpenGL: limited precision breaks AA of text in charts.