mirror of
https://github.com/yawut/SDL.git
synced 2026-07-17 10:09:27 -05:00
Fixed building on Visual Studio.
Buildbot
This commit is contained in:
parent
d1cc72dd52
commit
08e8e38c86
|
|
@ -794,8 +794,7 @@ GL_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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user