[Libreoffice-commits] core.git: vcl/opengl

Michael Meeks michael.meeks at collabora.com
Sat Jan 2 04:41:18 PST 2016


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

New commits:
commit c798c1baf176f62964e1accc5edfddf48e1102be
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Sat Jan 2 10:54:40 2016 +0000

    tdf#96858 - opengl - fix off-by-1 in glScissor clipping.
    
    Change-Id: I3085e2d2848e2041c2faadbfce099ce75c62b712
    Reviewed-on: https://gerrit.libreoffice.org/21043
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index c39d25e..539ae76 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() )


More information about the Libreoffice-commits mailing list