Corrected some issues
- Support compiling for OpenGL 1.1 - Free meshes/materials memory after usage...
This commit is contained in:
parent
86212e8462
commit
f1cbdd6b3a
2 changed files with 19 additions and 3 deletions
|
@ -682,6 +682,9 @@ void UnloadModel(Model model)
|
|||
{
|
||||
for (int i = 0; i < model.meshCount; i++) UnloadMesh(&model.meshes[i]);
|
||||
for (int i = 0; i < model.materialCount; i++) UnloadMaterial(model.materials[i]);
|
||||
|
||||
free(model.meshes);
|
||||
free(model.materials);
|
||||
free(model.meshMaterial);
|
||||
|
||||
TraceLog(LOG_INFO, "Unloaded model data from RAM and VRAM");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue