vcl/opengl/texture.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 7120906cf47de8c5bc73de1a4846fc97fd2979dc Author: Michael Meeks <michael.me...@collabora.com> Date: Thu Dec 31 22:35:38 2015 +0000
vcl: un-bind render-buffer after setup & add debug. Change-Id: Ic94f94148397d46d4442f2290d331438c0799f75 Reviewed-on: https://gerrit.libreoffice.org/21029 Reviewed-by: Michael Meeks <michael.me...@collabora.com> Tested-by: Michael Meeks <michael.me...@collabora.com> diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx index f2439a1..83aa3d4 100644 --- a/vcl/opengl/texture.cxx +++ b/vcl/opengl/texture.cxx @@ -134,12 +134,15 @@ GLuint ImplOpenGLTexture::AddStencil() assert( mnOptStencil == 0 ); glGenRenderbuffers( 1, &mnOptStencil ); + CHECK_GL_ERROR(); glBindRenderbuffer( GL_RENDERBUFFER, mnOptStencil ); CHECK_GL_ERROR(); VCL_GL_INFO( "Allocate stencil " << mnWidth << " x " << mnHeight ); glRenderbufferStorage( GL_RENDERBUFFER, GL_STENCIL_INDEX, mnWidth, mnHeight ); CHECK_GL_ERROR(); + glBindRenderbuffer(GL_RENDERBUFFER, 0); + CHECK_GL_ERROR(); return mnOptStencil; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits