Merge pull request #639 from ratkingsminion/patch-1

Update models.c
This commit is contained in:
Ray 2018-09-06 22:47:24 +02:00 committed by GitHub
commit 1ef715ab76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -717,7 +717,7 @@ Mesh GenMeshPlane(float width, float length, int resX, int resZ)
resZ++;
// Vertices definition
int vertexCount = resX*resZ*6; // 6 vertex by quad
int vertexCount = resX*resZ; // vertices get reused for the faces
Vector3 *vertices = (Vector3 *)malloc(vertexCount*sizeof(Vector3));
for (int z = 0; z < resZ; z++)