Kaydet (Commit) 360b988e authored tarafından Louis-Francis Ratté-Boulianne's avatar Louis-Francis Ratté-Boulianne Kaydeden (comit) Jan Holesovsky

vcl: Correctly set the values for the GL scissor test when clipping

Change-Id: I5ff59f93a3760e6a920860f8aa5fc3f62d0d183d
üst 622f8bc5
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment