mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-20 10:18:14 +00:00
Fix wrong height used when using scissor mode with render texture of different height from window (#1272)
This commit is contained in:
@@ -1536,7 +1536,7 @@ void BeginScissorMode(int x, int y, int width, int height)
|
||||
rlglDraw(); // Force drawing elements
|
||||
|
||||
rlEnableScissorTest();
|
||||
rlScissor(x, GetScreenHeight() - (y + height), width, height);
|
||||
rlScissor(x, CORE.Window.currentFbo.height - (y + height), width, height);
|
||||
}
|
||||
|
||||
// End scissor mode
|
||||
|
Reference in New Issue
Block a user