2
0
Эх сурвалжийг харах

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

Chang Si Yuan 5 жил өмнө
parent
commit
6264c4901b
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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