Improved vertex attribs support for models

This commit is contained in:
Ray 2016-05-08 23:50:35 +02:00
parent 0bcb873cbb
commit f7d4951165
3 changed files with 45 additions and 16 deletions

View file

@ -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);