We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccb5841 commit 5ff5ecbCopy full SHA for 5ff5ecb
src/gc_gl.c
@@ -194,7 +194,7 @@ static void update_scissor()
194
params = glparamstate.viewport;
195
y = params[1];
196
}
197
- GX_SetScissor(params[0], y, params[2] > 640 ? 640 : params[2], params[3]);
+ GX_SetScissor(params[0], y, params[2], params[3]);
198
199
glparamstate.dirty.bits.dirty_scissor = 0;
200
@@ -1015,11 +1015,13 @@ void glEnd()
1015
1016
void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
1017
{
1018
+ // Since thw max the framebuffer
1019
+ if (width > 640) width = 640;
1020
glparamstate.viewport[0] = x;
1021
glparamstate.viewport[1] = y;
1022
glparamstate.viewport[2] = width;
1023
glparamstate.viewport[3] = height;
- GX_SetViewport(x, y, width > 640 ? 640 : width, height, 0.0f, 1.0f);
1024
+ GX_SetViewport(x, y, width, height, 0.0f, 1.0f);
1025
if (glparamstate.scissor[2] < 0) {
1026
glparamstate.scissor[2] = width;
1027
glparamstate.scissor[3] = height;
0 commit comments