瀏覽代碼

Verify there is enough space in the batch for the npatch geometry. (#2401)

pull/2403/head
Jeffery Myers 3 年之前
committed by GitHub
父節點
當前提交
c65efecf0a
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      src/rtextures.c

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

@ -3471,6 +3471,8 @@ void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest,
coordD.x = (nPatchInfo.source.x + nPatchInfo.source.width)/width;
coordD.y = (nPatchInfo.source.y + nPatchInfo.source.height)/height;
rlCheckRenderBatchLimit(9 * 3 * 2); // Maxium number of verts that could happen
rlSetTexture(texture.id);
rlPushMatrix();

Loading…
取消
儲存