mirror of
https://github.com/yawut/SDL.git
synced 2026-04-19 15:17:23 -05:00
Inlined expression for consistency in render source.
This commit is contained in:
parent
82d01cd77a
commit
a19135fd1a
|
|
@ -645,8 +645,7 @@ GLES_UpdateClipRect(SDL_Renderer * renderer)
|
|||
|
||||
if (!SDL_RectEmpty(rect)) {
|
||||
data->glEnable(GL_SCISSOR_TEST);
|
||||
int lowerLeft = renderer->viewport.h - rect->y - rect->h;
|
||||
data->glScissor(rect->x, lowerLeft, rect->w, rect->h);
|
||||
data->glScissor(rect->x, renderer->viewport.h - rect->y - rect->h, rect->w, rect->h);
|
||||
} else {
|
||||
data->glDisable(GL_SCISSOR_TEST);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -288,8 +288,7 @@ GLES2_UpdateClipRect(SDL_Renderer * renderer)
|
|||
|
||||
if (!SDL_RectEmpty(rect)) {
|
||||
rdata->glEnable(GL_SCISSOR_TEST);
|
||||
int lowerLeft = renderer->viewport.h - rect->y - rect->h;
|
||||
rdata->glScissor(rect->x, lowerLeft, rect->w, rect->h);
|
||||
rdata->glScissor(rect->x, renderer->viewport.h - rect->y - rect->h, rect->w, rect->h);
|
||||
} else {
|
||||
rdata->glDisable(GL_SCISSOR_TEST);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user