Pārlūkot izejas kodu
[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
pirms 2 nedēļām
committed by
GitHub
vecāks
revīzija
5feccb1bab
Šim parakstam datu bāzē netika atrasta zināma atslēga
GPG atslēgas ID: B5690EEEBB952194
1 mainītis faili ar
1 papildinājumiem un
1 dzēšanām
-
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; |
|
|
|
|
|
|
|