aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2019-08-08 10:18:12 +0200
committerraysan5 <raysan5@gmail.com>2019-08-08 10:18:12 +0200
commit3ebc55fdfe856e5d1086fa35333bff296cc169bb (patch)
treea806ab7d3b99a15ffc793a8da4d46f84ee3e3a11 /src
parent2d5cc5ddbf3c0d157b67e7896f6b6efe58c65ef4 (diff)
downloadraylib-3ebc55fdfe856e5d1086fa35333bff296cc169bb.tar.gz
raylib-3ebc55fdfe856e5d1086fa35333bff296cc169bb.zip
Reviewed comment
Diffstat (limited to 'src')
-rw-r--r--src/models.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/models.c b/src/models.c
index df123fa7..5dce1767 100644
--- a/src/models.c
+++ b/src/models.c
@@ -704,10 +704,9 @@ void UnloadModel(Model model)
{
for (int i = 0; i < model.meshCount; i++) UnloadMesh(model.meshes[i]);
- // as the user could be sharing shaders and textures between
- // models, don't unload the material but free it's maps instead
- // the user is responsible for freeing models shaders and textures
- //for (int i = 0; i < model.materialCount; i++) UnloadMaterial(model.materials[i]);
+ // As the user could be sharing shaders and textures between models,
+ // we don't unload the material but just free it's maps, the user
+ // is responsible for freeing models shaders and textures
for (int i = 0; i < model.materialCount; i++) RL_FREE(model.materials[i].maps);
RL_FREE(model.meshes);