From 4b5e574703278c942f280b05b27ef99091ca84da Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Sat, 2 Jan 2016 10:54:40 +0000 Subject: tdf#96858 - opengl - fix off-by-1 in glScissor clipping. Change-Id: I3085e2d2848e2041c2faadbfce099ce75c62b712 Reviewed-on: https://gerrit.libreoffice.org/21044 Tested-by: Jenkins Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist --- vcl/opengl/gdiimpl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index e92b6b66bd7a..9a40e46d0d89 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -332,7 +332,7 @@ void OpenGLSalGraphicsImpl::ImplInitClipRegion() if( mbUseScissor ) { Rectangle aRect( maClipRegion.GetBoundRect() ); - glScissor( aRect.Left(), GetHeight() - aRect.Bottom() - 1, aRect.GetWidth() + 1, aRect.GetHeight() + 1 ); + glScissor( aRect.Left(), GetHeight() - aRect.Bottom() - 1, aRect.GetWidth(), aRect.GetHeight() ); CHECK_GL_ERROR(); } else if( !maClipRegion.IsEmpty() ) -- cgit v1.2.3