Browse Source

Merge pull request #639 from ratkingsminion/patch-1

Update models.c
pull/650/head
Ray 6 years ago
committed by GitHub
parent
commit
1ef715ab76
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/models.c

+ 1
- 1
src/models.c View File

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

Loading…
Cancel
Save