Bläddra i källkod

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

pull/1274/head
Chang Si Yuan 5 år sedan
committed by GitHub
förälder
incheckning
6264c4901b
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      src/core.c

+ 1
- 1
src/core.c Visa fil

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

Laddar…
Avbryt
Spara