summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-22 08:11:33 -0500
committerJan Holesovsky <kendy@collabora.com>2014-11-22 20:14:22 +0100
commit357011b5baef0b9b0b966e84ea2494aa81845e45 (patch)
tree2a2288ad7905f0d0d330fc5d3adee43bf4a5f09f
parentbee1ac1305eb9299545b6a6c85ea4e9212065543 (diff)
vcl: Make sure the active framebuffer is the right one before drawing
Change-Id: Icc30bee1d58dbf8f5e7b65ba90cfdf0c9135b464
-rw-r--r--vcl/opengl/gdiimpl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index d4e09172f436..1c420e7f8df9 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();