Skip to content

Commit

Permalink
Assume render targets are inverted for scissor
Browse files Browse the repository at this point in the history
  • Loading branch information
tcdude committed Aug 2, 2024
1 parent a92527e commit 4d03af3
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -720,12 +720,7 @@ static bool scissor_on = false;
void kinc_g4_scissor(int x, int y, int width, int height) {
scissor_on = true;
glEnable(GL_SCISSOR_TEST);
if (renderToBackbuffer) {
glScissor(x, _renderTargetHeight - y - height, width, height);
}
else {
glScissor(x, y, width, height);
}
glScissor(x, _renderTargetHeight - y - height, width, height);
}

void kinc_g4_disable_scissor() {
Expand Down

0 comments on commit 4d03af3

Please sign in to comment.