diff options
| author | Ray <raysan5@gmail.com> | 2016-05-08 23:50:35 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2016-05-08 23:50:35 +0200 |
| commit | f7d4951165e8bece5ae58cd4c92b08e4f29cbef7 (patch) | |
| tree | 410e7ac3221c2df459ad77d7fe770a79888b1953 /src/models.c | |
| parent | 0bcb873cbb3758d67b1d263fafb6be818ddbf067 (diff) | |
| download | raylib-f7d4951165e8bece5ae58cd4c92b08e4f29cbef7.tar.gz raylib-f7d4951165e8bece5ae58cd4c92b08e4f29cbef7.zip | |
Improved vertex attribs support for models
Diffstat (limited to 'src/models.c')
| -rw-r--r-- | src/models.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models.c b/src/models.c index 4aff7216..ee04b449 100644 --- a/src/models.c +++ b/src/models.c @@ -695,7 +695,7 @@ void UnloadModel(Model model) // Unload mesh data free(model.mesh.vertices); free(model.mesh.texcoords); - free(model.mesh.normals); + if (model.mesh.normals != NULL) free(model.mesh.normals); if (model.mesh.colors != NULL) free(model.mesh.colors); if (model.mesh.tangents != NULL) free(model.mesh.tangents); if (model.mesh.texcoords2 != NULL) free(model.mesh.texcoords2); |
