diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-09-02 01:01:37 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-09-02 01:08:55 +0200 |
commit | 200dd78946a70a4c08a4d479e845b3b724bbecc4 (patch) | |
tree | 70e83543df5ba0327270c19901ade1211c1a80b1 /vcl/source/window/openglwin.cxx | |
parent | 1ba10b7b307ffdb098049c303719da4aa6752502 (diff) |
fix crash when creating chart
Change-Id: Ie6e38a0461a10cc33ff3d85cbf3b35ffab0efd59
Diffstat (limited to 'vcl/source/window/openglwin.cxx')
-rw-r--r-- | vcl/source/window/openglwin.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
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 <vcl/openglwin.hxx> #include <vcl/opengl/OpenGLContext.hxx> #include <vcl/event.hxx> +#include <vcl/sysdata.hxx> class OpenGLWindowImpl { @@ -21,9 +22,10 @@ private: boost::scoped_ptr<SystemChildWindow> 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); |