Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Inlined expression for consistency in render source.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed May 13, 2013
1 parent a1d119f commit 8f9fb26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/render/opengles/SDL_render_gles.c
Expand Up @@ -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);
}
Expand Down
3 changes: 1 addition & 2 deletions src/render/opengles2/SDL_render_gles2.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8f9fb26

Please sign in to comment.