Browse Source

Fix uninitialized vboId in GenMeshHeightmap (#949)

pull/951/head
Oraoto 5 years ago
committed by Ray
parent
commit
7ebcd06652
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/models.c

+ 1
- 0
src/models.c View File

@ -1769,6 +1769,7 @@ Mesh GenMeshHeightmap(Image heightmap, Vector3 size)
#define GRAY_VALUE(c) ((c.r+c.g+c.b)/3)
Mesh mesh = { 0 };
mesh.vboId = (unsigned int *)RL_CALLOC(MAX_MESH_VBO*sizeof(unsigned int), 1);
int mapX = heightmap.width;
int mapZ = heightmap.height;

Loading…
Cancel
Save