diff options
| author | Chang Si Yuan <[email protected]> | 2020-06-08 16:32:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-08 10:32:23 +0200 |
| commit | 6264c4901b67fb49f829165bdb806c11be40b29a (patch) | |
| tree | 110d1f8215fd4c9a75451b2c947b78d8bf81954a /src | |
| parent | 73cc33b4939ec3c795e76af50f1a7314583be117 (diff) | |
| download | raylib-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
