diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-22 08:11:33 -0500 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-12-02 15:47:23 +0100 |
commit | 94b5161c2d0c54b5b0c34462026abebce885f89f (patch) | |
tree | 5f1712c6d34ba75ecb2dc851073bdb2508dbb7ac /vcl/opengl | |
parent | d637d398f4567f01bba67805a4c2ce4f8a4f1c18 (diff) |
vcl: Make sure the active framebuffer is the right one before drawing
Change-Id: Icc30bee1d58dbf8f5e7b65ba90cfdf0c9135b464
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 576de5c08259..400a66ea1866 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -212,6 +212,9 @@ void OpenGLSalGraphicsImpl::PreDraw() // TODO: lfrb: make sure the render target has the right size if( mbOffscreen ) CheckOffscreenTexture(); + else + glBindFramebuffer( GL_FRAMEBUFFER, 0 ); + CHECK_GL_ERROR(); glViewport( 0, 0, GetWidth(), GetHeight() ); ImplInitClipRegion(); |