summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-01-02 10:54:40 +0000
committerMichael Meeks <michael.meeks@collabora.com>2016-01-02 12:40:41 +0000
commitc798c1baf176f62964e1accc5edfddf48e1102be (patch)
tree5bc70cf40a794590e50ef9b59b520c3b4d076ff8
parent32439b8670d3d72529c57c1eb4c38c2a443474f2 (diff)
tdf#96858 - opengl - fix off-by-1 in glScissor clipping.
Change-Id: I3085e2d2848e2041c2faadbfce099ce75c62b712 Reviewed-on: https://gerrit.libreoffice.org/21043 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
-rw-r--r--vcl/opengl/gdiimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index c39d25ead71f..539ae7603efb 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() )