summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-02 04:12:59 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-11-10 07:58:47 +0100
commit73ca9a6b71b484e6dc331c6ffbca6071a1bf1195 (patch)
treedd65f1aff31662e535c814f7d556bd55894b8424 /vcl/win
parentdafa1c73e65bf363d97d86a91d5d4da1068ad6c9 (diff)
init the OpenGL context in the windows backend
Change-Id: Ic4fb491c95170639015a4452f355354ad01612bc
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/source/gdi/salgdi.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/win/source/gdi/salgdi.cxx b/vcl/win/source/gdi/salgdi.cxx
index e3a6fadfa2bf..97f102e4d2ea 100644
--- a/vcl/win/source/gdi/salgdi.cxx
+++ b/vcl/win/source/gdi/salgdi.cxx
@@ -483,6 +483,12 @@ void WinSalGraphics::InitGraphics()
::SetTextAlign( getHDC(), TA_BASELINE | TA_LEFT | TA_NOUPDATECP );
::SetBkMode( getHDC(), WIN32_TRANSPARENT );
::SetROP2( getHDC(), R2_COPYPEN );
+
+ OpenGLSalGraphicsImpl* pImpl = dynamic_cast<OpenGLSalGraphicsImpl*>(mpImpl.get());
+ if (pImpl)
+ {
+ pImpl->GetOpenGLContext().init(mhLocalDC, mhWnd);
+ }
}
void WinSalGraphics::DeInitGraphics()