Fixes OpenGL* Clip Rect functions (by Emmanuel Gil Peyrot)

This commit is contained in:
Gabriel Jacobo 2013-05-10 10:31:01 -03:00
parent 5d9de376d2
commit 7065c6467d
5 changed files with 21 additions and 7 deletions

View file

@ -794,7 +794,7 @@ GL_UpdateClipRect(SDL_Renderer * renderer)
if (!SDL_RectEmpty(rect)) {
data->glEnable(GL_SCISSOR_TEST);
data->glScissor(rect->x, rect->y, rect->x + rect->w, rect->y + rect->h);
data->glScissor(rect->x, rect->h - rect->y, rect->x, rect->y);
} else {
data->glDisable(GL_SCISSOR_TEST);
}