OpenGL+GLES renderers: Fixed incorrect clip rectangle coords (thanks, Marcel!).
Fixes Bugzilla #2700. --HG-- extra : rebase_source : 330d2ad63fbea2eb79133a9e47c0abec2cc36974
This commit is contained in:
parent
98bb021a4b
commit
fcd63f6ac9
3 changed files with 3 additions and 3 deletions
|
@ -1052,7 +1052,7 @@ GL_UpdateClipRect(SDL_Renderer * renderer)
|
|||
int w, h;
|
||||
|
||||
SDL_GetRendererOutputSize(renderer, &w, &h);
|
||||
data->glScissor(renderer->viewport.x + rect->x, (h - renderer->viewport.y - renderer->viewport.h) + rect->y, rect->w, rect->h);
|
||||
data->glScissor(renderer->viewport.x + rect->x, h - renderer->viewport.y - rect->y - rect->h, rect->w, rect->h);
|
||||
}
|
||||
} else {
|
||||
data->glDisable(GL_SCISSOR_TEST);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue