From 95f4d0fed142171acba11a3a6feda4fd820e70cc Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 17 Apr 2014 17:24:22 +0300 Subject: Try harder to bypass OpenGL 3D stuff on non-desktop for now At least while the OpenGL chart feature is a work in progress, and nobody is working on it for iOS or Android anyway. Change-Id: I9de5c6647e6db42b330e593089e296aa9a346afb --- svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'svx') diff --git a/svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx b/svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx index 6062ab96803b..2f76985bdb6a 100644 --- a/svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx @@ -7,6 +7,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include + #include #include @@ -21,9 +23,11 @@ ViewObjectContactOfOpenGLObj::ViewObjectContactOfOpenGLObj( ObjectContact& rObjectContact, ViewContact& rViewContact ) : ViewObjectContactOfSdrObj( rObjectContact, rViewContact ) { +#if HAVE_FEATURE_DESKTOP OpenGLContext* pContext = static_cast(static_cast(rViewContact).GetSdrObject()).getOpenGLContext(); if (pContext) pContext->init(getWindow()); +#endif } ViewObjectContactOfOpenGLObj::~ViewObjectContactOfOpenGLObj() -- cgit