From 200dd78946a70a4c08a4d479e845b3b724bbecc4 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 2 Sep 2014 01:01:37 +0200 Subject: fix crash when creating chart Change-Id: Ie6e38a0461a10cc33ff3d85cbf3b35ffab0efd59 --- vcl/source/window/openglwin.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vcl/source/window/openglwin.cxx') diff --git a/vcl/source/window/openglwin.cxx b/vcl/source/window/openglwin.cxx index cfe6e6af1fc4..1151a4da16c2 100644 --- a/vcl/source/window/openglwin.cxx +++ b/vcl/source/window/openglwin.cxx @@ -10,6 +10,7 @@ #include #include #include +#include class OpenGLWindowImpl { @@ -21,9 +22,10 @@ private: boost::scoped_ptr mpChildWindow; }; -OpenGLWindowImpl::OpenGLWindowImpl(Window* pWindow): - mpChildWindow(new SystemChildWindow(pWindow)) +OpenGLWindowImpl::OpenGLWindowImpl(Window* pWindow) { + SystemWindowData aData = OpenGLContext::generateWinData(pWindow, false); + mpChildWindow.reset(new SystemChildWindow(pWindow, 0, &aData)); mpChildWindow->Show(); maContext.init(mpChildWindow.get()); pWindow->SetMouseTransparent(false); -- cgit