diff options
| author | Oraoto <oraoto@outlook.com> | 2019-08-19 16:25:26 +0800 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2019-08-19 10:25:26 +0200 |
| commit | 7ebcd066527c021c8b444cb00f05f4c916cee78b (patch) | |
| tree | 9806c921359ca48c56526c5ecf663ff6aa9a0799 /src | |
| parent | ce8d7042c625d45e28755d80f9b39beb1d2a6c5a (diff) | |
| download | raylib-7ebcd066527c021c8b444cb00f05f4c916cee78b.tar.gz raylib-7ebcd066527c021c8b444cb00f05f4c916cee78b.zip | |
Fix uninitialized vboId in GenMeshHeightmap (#949)
Diffstat (limited to 'src')
| -rw-r--r-- | src/models.c | 1 |
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; |
