Переглянути джерело

[rmodels] Fixed null pointer dereference in LoadGLTF

pull/4564/head
Caleb Heydon 4 місяці тому
джерело
коміт
390ce391cc
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      src/rmodels.c

+ 1
- 1
src/rmodels.c Переглянути файл

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

Завантаження…
Відмінити
Зберегти