Corrected some issues

- Support compiling for OpenGL 1.1
- Free meshes/materials memory after usage...
This commit is contained in:
Ray 2019-04-01 18:22:56 +02:00
parent 86212e8462
commit f1cbdd6b3a
2 changed files with 19 additions and 3 deletions

View file

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