diff --git a/src/rlgl.h b/src/rlgl.h index 6b17dcf58..f8b5ac115 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -3289,7 +3289,7 @@ void BeginScissorMode(int x, int y, int width, int height) rlglDraw(); // Force drawing elements glEnable(GL_SCISSOR_TEST); - glScissor(x, GetScreenHeight() - (y + height), width, height); + glScissor(x, screenHeight - (y + height), width, height); rlClearScreenBuffers(); // Clear current scissor area }