aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOraoto <oraoto@outlook.com>2019-08-19 16:25:26 +0800
committerRay <raysan5@gmail.com>2019-08-19 10:25:26 +0200
commit7ebcd066527c021c8b444cb00f05f4c916cee78b (patch)
tree9806c921359ca48c56526c5ecf663ff6aa9a0799 /src
parentce8d7042c625d45e28755d80f9b39beb1d2a6c5a (diff)
downloadraylib-7ebcd066527c021c8b444cb00f05f4c916cee78b.tar.gz
raylib-7ebcd066527c021c8b444cb00f05f4c916cee78b.zip
Fix uninitialized vboId in GenMeshHeightmap (#949)
Diffstat (limited to 'src')
-rw-r--r--src/models.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models.c b/src/models.c
index 5dce1767..fd139e00 100644
--- a/src/models.c
+++ b/src/models.c
@@ -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;