diff options
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/texture.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx index f2439a12478c..83aa3d44325e 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; } |