浏览代码

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
找不到此签名对应的密钥 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

正在加载...
取消
保存