mirror of https://github.com/bjornbytes/lovr.git
Fix null dereference with setting mesh vertex maps;
This commit is contained in:
parent
d57d943618
commit
051663eff6
|
@ -177,7 +177,10 @@ int lovrMeshGetVertexSize(Mesh* mesh) {
|
|||
}
|
||||
|
||||
void* lovrMeshGetVertexMap(Mesh* mesh, size_t* count) {
|
||||
*count = mesh->indexCount;
|
||||
if (count) {
|
||||
*count = mesh->indexCount;
|
||||
}
|
||||
|
||||
return mesh->indices;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue