summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/openglwin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/window/openglwin.cxx b/vcl/source/window/openglwin.cxx
index 68eac16dfa77..0300987af29e 100644
--- a/vcl/source/window/openglwin.cxx
+++ b/vcl/source/window/openglwin.cxx
@@ -24,9 +24,9 @@ private:
OpenGLWindowImpl::OpenGLWindowImpl(Window* pWindow):
mpChildWindow(new SystemChildWindow(pWindow))
{
+ mpChildWindow->Show();
maContext.init(mpChildWindow.get());
pWindow->SetMouseTransparent(false);
- maContext.show();
}
OpenGLContext* OpenGLWindowImpl::getContext()
@@ -60,7 +60,6 @@ void OpenGLWindow::Paint(const Rectangle&)
void OpenGLWindow::MouseButtonDown( const MouseEvent& rMEvt )
{
- getContext()->show();
maStartPoint = rMEvt.GetPosPixel();
}