瀏覽代碼

[rmodels] Fixed null pointer dereference in LoadGLTF (#4564)

* [rmodels] Fixed null pointer dereference in LoadGLTF

* [rmodels] Add parenthesis around conditionals in LoadGLTF
pull/4574/head
Caleb Heydon 2 週之前
committed by GitHub
父節點
當前提交
5feccb1bab
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: B5690EEEBB952194
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rmodels.c

+ 1
- 1
src/rmodels.c 查看文件

@ -5657,7 +5657,7 @@ static Model LoadGLTF(const char *fileName)
}
// Load primitive indices data (if provided)
if (mesh->primitives[p].indices != NULL)
if (p">(mesh->primitives[p].indices != NULL) && (mesh->primitives[p].indices->buffer_view != NULL))
{
cgltf_accessor *attribute = mesh->primitives[p].indices;

Loading…
取消
儲存