浏览代码

Added security check to avoid internal render batch overflow

pull/1707/head
raysan5 3 年前
父节点
当前提交
a8dd4127f3
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/textures.c

+ 2
- 0
src/textures.c 查看文件

@ -3236,6 +3236,8 @@ void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2
bottomRight.x = x + (dx + dest.width)*cosRotation - (dy + dest.height)*sinRotation;
bottomRight.y = y + (dx + dest.width)*sinRotation + (dy + dest.height)*cosRotation;
}
rlCheckRenderBatchLimit(4); // Make sure there is enough free space on the batch buffer
rlSetTexture(texture.id);
rlBegin(RL_QUADS);

正在加载...
取消
保存