summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-17 17:36:42 -0500
committerLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-17 17:37:00 -0500
commit053b01fa6533ccd62b1bd184f0c7f9e42422cb8c (patch)
tree78080f9590e26422e1ab3c5b18743f807f8f8a1d
parent9368d7474263460e33d2047ffa9f6cc97f3b997d (diff)
vcl: Unbind framebuffer after setting offscreen mode
Change-Id: I057b148f51c8f011cb013e1f06288aec4d9bdb2a
-rw-r--r--vcl/opengl/gdiimpl.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index c9f8d4e542d3..bfa4b1ff4943 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -292,6 +292,7 @@ void OpenGLSalGraphicsImpl::SetOffscreen( bool bOffscreen )
glBindFramebuffer( GL_FRAMEBUFFER, mnFramebufferId );
maOffscreenTex = OpenGLTexture( GetWidth(), GetHeight() );
glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, maOffscreenTex.Id(), 0 );
+ glBindFramebuffer( GL_FRAMEBUFFER, 0 );
}
CHECK_GL_ERROR();