Browse Source

Update models.c

Ray 4 years ago
parent
commit
1e65817d05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/models.c

+ 1 - 1
src/models.c

@@ -928,7 +928,7 @@ void UploadMesh(Mesh *mesh, bool dynamic)
 // Update mesh vertex data in GPU for a specific buffer index
 void UpdateMeshBuffer(Mesh mesh, int index, void *data, int dataSize, int offset)
 {
-    rlUpdateVertexBuffer(mesh->vboId[index], data, dataSize, offset);
+    rlUpdateVertexBuffer(mesh.vboId[index], data, dataSize, offset);
 }
 
 // Draw a 3d mesh with material and transform