summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2019-08-19 12:09:25 +0200
committerRay <[email protected]>2019-08-19 12:09:25 +0200
commit049a1c8f6d6c0535f39273c54fffda25c7570546 (patch)
tree9367c4296f9ac482054d7231edd2ddc5566bd09e /src
parent4b79f63d07ca81c180ce9d021b2d5fa6cb6af401 (diff)
parent7ebcd066527c021c8b444cb00f05f4c916cee78b (diff)
downloadraylib-049a1c8f6d6c0535f39273c54fffda25c7570546.tar.gz
raylib-049a1c8f6d6c0535f39273c54fffda25c7570546.zip
Merge branch 'master' of https://github.com/raysan5/raylib
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;