diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-11-22 21:42:08 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-11-22 21:43:23 +0100 |
commit | 4e9dcb506c3f12792082a81313361edea331fcb9 (patch) | |
tree | 32f7402779b9c3914c0323bf54972018ab27c215 /vcl | |
parent | bb77fd64f9219f1b8f990f5041d81cfddd021213 (diff) |
windows opengl: Implement WinOpenGLSalGraphicsImpl::Init() too.
[Blind fix to fix build; real fix to follow after testing.]
Change-Id: Ic4cf2dc74ba4649a2453bc351cdc1d1fad59a0ca
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/opengl/win/gdiimpl.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/opengl/win/gdiimpl.cxx b/vcl/opengl/win/gdiimpl.cxx index 08159278f576..320f6a76a91a 100644 --- a/vcl/opengl/win/gdiimpl.cxx +++ b/vcl/opengl/win/gdiimpl.cxx @@ -18,6 +18,15 @@ WinOpenGLSalGraphicsImpl::WinOpenGLSalGraphicsImpl(WinSalGraphics& rGraphics): { } +void WinOpenGLSalGraphicsImpl::Init() +{ + // FIXME - is this still needed after the recent changes? + //if (mbVirDev) + // GetOpenGLContext().requestVirtualDevice(); + GetOpenGLContext().requestSingleBufferedRendering(); + GetOpenGLContext().init(mhLocalDC, mhWnd); +} + void WinOpenGLSalGraphicsImpl::copyBits( const SalTwoRect& rPosAry, SalGraphics* pSrcGraphics ) { OpenGLSalGraphicsImpl *pImpl = pSrcGraphics ? static_cast< OpenGLSalGraphicsImpl* >(pSrcGraphics->GetImpl()) : static_cast< OpenGLSalGraphicsImpl *>(mrParent.GetImpl()); |