Kaydet (Commit) 6ef014e5 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

initialize the OpenGL context as soon as possible

Change-Id: I58051695d0ca8384fb771bfc74aeb228145f77e6
üst cd56c7bc
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
*/ */
#include <svx/sdr/contact/viewobjectcontactofopenglobj.hxx> #include <svx/sdr/contact/viewobjectcontactofopenglobj.hxx>
#include <svx/sdr/contact/viewcontactofopenglobj.hxx>
#include <svx/svdoopengl.hxx>
#include <vcl/outdev.hxx> #include <vcl/outdev.hxx>
#include <vcl/window.hxx> #include <vcl/window.hxx>
...@@ -18,6 +21,8 @@ ViewObjectContactOfOpenGLObj::ViewObjectContactOfOpenGLObj( ...@@ -18,6 +21,8 @@ ViewObjectContactOfOpenGLObj::ViewObjectContactOfOpenGLObj(
ObjectContact& rObjectContact, ViewContact& rViewContact ) ObjectContact& rObjectContact, ViewContact& rViewContact )
: ViewObjectContactOfSdrObj( rObjectContact, rViewContact ) : ViewObjectContactOfSdrObj( rObjectContact, rViewContact )
{ {
OpenGLContext& rContext = static_cast<SdrOpenGLObj&>(static_cast<ViewContactOfSdrObj&>(rViewContact).GetSdrObject()).getOpenGLContext();
rContext.init(getWindow());
} }
ViewObjectContactOfOpenGLObj::~ViewObjectContactOfOpenGLObj() ViewObjectContactOfOpenGLObj::~ViewObjectContactOfOpenGLObj()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment