Browse Source

Fix wrong height used when using scissor mode with render texture of different height from window (#1272)

pull/1274/head
Chang Si Yuan 5 years ago
committed by GitHub
parent
commit
6264c4901b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/core.c

+ 1
- 1
src/core.c View File

@ -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

Loading…
Cancel
Save