diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-19 14:18:10 -0500 |
---|---|---|
committer | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-19 14:18:10 -0500 |
commit | 1f3a20c2d1fffe996cb06fc6f102157ae0bccce3 (patch) | |
tree | 33815f3d1df4579ecb5512ccc2af9bfd0a93f824 | |
parent | 913554d500166983b6b8d76506fb38d467986dd4 (diff) |
vcl: Correctly set the values for the GL scissor test when clipping
Change-Id: I5ff59f93a3760e6a920860f8aa5fc3f62d0d183d
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 53c7ce090c5f..877db3b71ac6 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -182,7 +182,8 @@ bool OpenGLSalGraphicsImpl::setClipRegion( const vcl::Region& rClip ) mbUseStencil = false; mbUseScissor = true; maContext.makeCurrent(); - glScissor( aRect.Left(), GetHeight() - aRect.Top(), aRect.GetWidth(), aRect.GetHeight() ); + glViewport( 0, 0, GetWidth(), GetHeight() ); + glScissor( aRect.Left(), GetHeight() - aRect.Bottom() - 1, aRect.GetWidth(), aRect.GetHeight() ); } else { |