From feffcbb02c2cb17d615151f5587ae38510f3aa02 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 31 Mar 2014 23:09:24 +0200 Subject: [PATCH] Revert "Remove opengl usage from svx until we can't solve building problems" This reverts commit 10be411f33c69db83cc5de410eaddf2d297608ae. --- include/svx/sdr/contact/viewobjectcontactofopenglobj.hxx | 4 ++++ svx/Library_svxcore.mk | 3 +++ svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx | 3 +++ 3 files changed, 10 insertions(+) diff --git a/include/svx/sdr/contact/viewobjectcontactofopenglobj.hxx b/include/svx/sdr/contact/viewobjectcontactofopenglobj.hxx index 8781aa452d5a..00e1dffde835 100644 --- a/include/svx/sdr/contact/viewobjectcontactofopenglobj.hxx +++ b/include/svx/sdr/contact/viewobjectcontactofopenglobj.hxx @@ -11,6 +11,7 @@ #define INCLUDED_SVX_SDR_CONTACT_VIEWOBJECTCONTACTOFOPENGL_HXX #include +#include class Window; @@ -25,6 +26,9 @@ public: protected: Window* getWindow() const; + +private: + OpenGLContext m_aOpenGLContext; }; } // namespace sdr diff --git a/svx/Library_svxcore.mk b/svx/Library_svxcore.mk index f26479cef04e..b3c35215d878 100644 --- a/svx/Library_svxcore.mk +++ b/svx/Library_svxcore.mk @@ -75,6 +75,7 @@ $(eval $(call gb_Library_use_libraries,svxcore,\ utl \ vcl \ xo \ + $(if $(filter FREEBSD LINUX MACOSX WNT,$(OS)),vclopengl) \ $(gb_UWINAPI) \ )) @@ -82,6 +83,8 @@ $(eval $(call gb_Library_use_externals,svxcore,\ boost_headers \ icuuc \ icu_headers \ + mesa_headers \ + glew \ )) $(eval $(call gb_Library_add_exception_objects,svxcore,\ diff --git a/svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx b/svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx index 2cf0086287f8..1689468993b1 100644 --- a/svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx @@ -18,6 +18,9 @@ ViewObjectContactOfOpenGLObj::ViewObjectContactOfOpenGLObj( ObjectContact& rObjectContact, ViewContact& rViewContact ) : ViewObjectContactOfSdrObj( rObjectContact, rViewContact ) { + m_aOpenGLContext.init(getWindow()); + // Set a dummy size to make the window visible + m_aOpenGLContext.setWinSize(Size(200,200)); } ViewObjectContactOfOpenGLObj::~ViewObjectContactOfOpenGLObj()