summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorChang Si Yuan <[email protected]>2020-06-08 16:32:23 +0800
committerGitHub <[email protected]>2020-06-08 10:32:23 +0200
commit6264c4901b67fb49f829165bdb806c11be40b29a (patch)
tree110d1f8215fd4c9a75451b2c947b78d8bf81954a /src
parent73cc33b4939ec3c795e76af50f1a7314583be117 (diff)
downloadraylib-6264c4901b67fb49f829165bdb806c11be40b29a.tar.gz
raylib-6264c4901b67fb49f829165bdb806c11be40b29a.zip
Fix wrong height used when using scissor mode with render texture of different height from window (#1272)
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index bb29c2b9..09aa1d8e 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