Explorar o código

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

Chang Si Yuan %!s(int64=5) %!d(string=hai) anos
pai
achega
6264c4901b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core.c

+ 1 - 1
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