[Libreoffice-commits] core.git: Branch 'feature/opengl-vcl2' - vcl/opengl

Louis-Francis Ratté-Boulianne lfrb at collabora.com
Mon Nov 17 14:37:40 PST 2014


 vcl/opengl/gdiimpl.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 053b01fa6533ccd62b1bd184f0c7f9e42422cb8c
Author: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
Date:   Mon Nov 17 17:36:42 2014 -0500

    vcl: Unbind framebuffer after setting offscreen mode
    
    Change-Id: I057b148f51c8f011cb013e1f06288aec4d9bdb2a

diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index c9f8d4e..bfa4b1f 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();


More information about the Libreoffice-commits mailing list