Fix wrong height used when using scissor mode with render texture of different height from window (#1272)
This commit is contained in:
parent
73cc33b493
commit
6264c4901b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue