From 6264c4901b67fb49f829165bdb806c11be40b29a Mon Sep 17 00:00:00 2001 From: Chang Si Yuan Date: Mon, 8 Jun 2020 16:32:23 +0800 Subject: [PATCH] Fix wrong height used when using scissor mode with render texture of different height from window (#1272) --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index bb29c2b9c..09aa1d8ec 100644 --- a/src/core.c +++ b/src/core.c @@ -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