diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-05-06 02:22:57 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-05-06 03:07:50 +0200 |
commit | d9fb35083dd34a4a3b486e4b1c8969448c522103 (patch) | |
tree | 3febb2d1e60b27274c19d14cc47b96a15faec1b1 /vcl | |
parent | 68e5207306dad9ce4cdf95283f4b2c5e32f131e2 (diff) |
OpenGLContext: Use the right window handle on Windows.
Change-Id: I77eaf1dad9ce4c855b5f88bd8568944fd4128227
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 5271214fd5af..3e838eacf2d7 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -566,8 +566,6 @@ void OpenGLContext::renderToFile() bool OpenGLContext::initWindow() { - const SystemEnvData* sysData(mpWindow->GetSystemData()); - m_aGLWin.hWnd = sysData->hWnd; if( !m_pChildWindow ) { SystemWindowData winData = generateWinData(mpWindow); @@ -583,6 +581,8 @@ bool OpenGLContext::initWindow() m_pChildWindow->SetControlForeground(); m_pChildWindow->SetControlBackground(); m_pChildWindow->EnablePaint(sal_False); + + const SystemEnvData* sysData(m_pChildWindow->GetSystemData()); m_aGLWin.hWnd = sysData->hWnd; } |