Skip to content
Permalink
Browse files
OpenGL+GLES renderers: Fixed incorrect clip rectangle coords (thanks,…
… Marcel!).

Fixes Bugzilla #2700.
  • Loading branch information
icculus committed Dec 28, 2015
1 parent 4ae69e3 commit f893ce3d3ed4b9d27e48cda6fe7f8c61bacba7bd

File 2 of 3 in f893ce3

@@ -721,7 +721,7 @@ GLES_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);

0 comments on commit f893ce3

Please sign in to comment.