1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 12:33:52 +00:00

Fix null dereference with setting mesh vertex maps;

This commit is contained in:
bjorn 2017-11-01 23:29:03 -07:00
parent d57d943618
commit 051663eff6

View file

@ -177,7 +177,10 @@ int lovrMeshGetVertexSize(Mesh* mesh) {
} }
void* lovrMeshGetVertexMap(Mesh* mesh, size_t* count) { void* lovrMeshGetVertexMap(Mesh* mesh, size_t* count) {
if (count) {
*count = mesh->indexCount; *count = mesh->indexCount;
}
return mesh->indices; return mesh->indices;
} }