diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-11-02 04:12:59 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-10 07:58:47 +0100 |
commit | 73ca9a6b71b484e6dc331c6ffbca6071a1bf1195 (patch) | |
tree | dd65f1aff31662e535c814f7d556bd55894b8424 /vcl/win | |
parent | dafa1c73e65bf363d97d86a91d5d4da1068ad6c9 (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.cxx | 6 |
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() |