mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-20 10:18:14 +00:00
Update rmodels.c
This commit is contained in:
@@ -5666,7 +5666,7 @@ static Model LoadVOX(const char *fileName)
|
|||||||
|
|
||||||
// Copy indices
|
// Copy indices
|
||||||
size = voxarray.indices.used*sizeof(unsigned short);
|
size = voxarray.indices.used*sizeof(unsigned short);
|
||||||
pmesh->indices = (float *)RL_MALLOC(size);
|
pmesh->indices = (unsigned short *)RL_MALLOC(size);
|
||||||
memcpy(pmesh->indices, pindices, size);
|
memcpy(pmesh->indices, pindices, size);
|
||||||
|
|
||||||
pmesh->triangleCount = (pmesh->vertexCount/4)*2;
|
pmesh->triangleCount = (pmesh->vertexCount/4)*2;
|
||||||
|
Reference in New Issue
Block a user