Преглед на файлове

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

pull/1274/head
Chang Si Yuan преди 5 години
committed by GitHub
родител
ревизия
6264c4901b
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 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

Зареждане…
Отказ
Запис