Fix wrong height used when using scissor mode with render texture of different height from window
This commit is contained in:
parent
87592e2625
commit
3057ee1822
|
|
@ -1536,7 +1536,7 @@ void BeginScissorMode(int x, int y, int width, int height)
|
||||||
rlglDraw(); // Force drawing elements
|
rlglDraw(); // Force drawing elements
|
||||||
|
|
||||||
rlEnableScissorTest();
|
rlEnableScissorTest();
|
||||||
rlScissor(x, GetScreenHeight() - (y + height), width, height);
|
rlScissor(x, CORE.Window.currentFbo.height - (y + height), width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
// End scissor mode
|
// End scissor mode
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user