diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-11-22 21:42:08 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-11-25 11:47:28 +0100 |
commit | 7dd5f00d8d82e26b11a0b894156fcc5bd1f97cf6 (patch) | |
tree | d1dc492139826704c801d31df58497b006ddec8e | |
parent | Add dummy Erase to SalBitmap implementations (diff) | |
download | core-7dd5f00d8d82e26b11a0b894156fcc5bd1f97cf6.tar.gz core-7dd5f00d8d82e26b11a0b894156fcc5bd1f97cf6.zip |
windows opengl: Implement WinOpenGLSalGraphicsImpl::Init() too.
[Blind fix to fix build; real fix to follow after testing.]
Change-Id: Ic4cf2dc74ba4649a2453bc351cdc1d1fad59a0ca
-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 55b3c5a165ef..7c2fe1f53068 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 ? dynamic_cast< OpenGLSalGraphicsImpl* >(pSrcGraphics->GetImpl()) : static_cast< OpenGLSalGraphicsImpl *>(mrParent.GetImpl()); |