From 6ef014e597571557b6e45edf29c756fac0b9614c Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 15 Apr 2014 01:24:32 +0200 Subject: initialize the OpenGL context as soon as possible Change-Id: I58051695d0ca8384fb771bfc74aeb228145f77e6 --- svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'svx') diff --git a/svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx b/svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx index 2cf0086287f8..a4a8d902c1f0 100644 --- a/svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofopenglobj.cxx @@ -8,6 +8,9 @@ */ #include +#include + +#include #include #include @@ -18,6 +21,8 @@ ViewObjectContactOfOpenGLObj::ViewObjectContactOfOpenGLObj( ObjectContact& rObjectContact, ViewContact& rViewContact ) : ViewObjectContactOfSdrObj( rObjectContact, rViewContact ) { + OpenGLContext& rContext = static_cast(static_cast(rViewContact).GetSdrObject()).getOpenGLContext(); + rContext.init(getWindow()); } ViewObjectContactOfOpenGLObj::~ViewObjectContactOfOpenGLObj() -- cgit