diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-19 14:18:10 -0500 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-12-02 15:47:20 +0100 |
commit | 8ea069ad2da31d9f478d6766029b0add068a0aee (patch) | |
tree | 98360433d6b39453fcf86cc90dc2f124dc989364 | |
parent | 581ba15f7a37fa4836d9fbb9bdc77a7f67d6142d (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 d5f186ed88a8..2967ac576301 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 { |