summaryrefslogtreecommitdiff
path: root/vcl/opengl/gdiimpl.cxx
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-17 17:36:42 -0500
committerJan Holesovsky <kendy@collabora.com>2014-11-18 15:44:03 +0100
commitfef950f828f6e6da844f3a11ee72d9cd628b1474 (patch)
tree01faa2ce8f96e8ac53326a0c0f9e03a714c729a6 /vcl/opengl/gdiimpl.cxx
parent89ec42e1d11457c0855a84d1ba651964662140fb (diff)
vcl: Unbind framebuffer after setting offscreen mode
Change-Id: I057b148f51c8f011cb013e1f06288aec4d9bdb2a
Diffstat (limited to 'vcl/opengl/gdiimpl.cxx')
-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 67af601f1668..d324397dcb86 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();