Unload model shaders and textures

They are not automatically unloaded when unloading the model!
This commit is contained in:
raysan5 2019-08-26 21:19:04 +02:00
parent addbd88833
commit 37a6f12037
6 changed files with 13 additions and 3 deletions

View file

@ -115,11 +115,12 @@ int main(void)
// De-Initialization
//--------------------------------------------------------------------------------------
UnloadTexture(texture); // Unload texture
// Unload models data (GPU VRAM)
for (int i = 0; i < NUM_MODELS; i++) UnloadModel(models[i]);
CloseWindow(); // Close window and OpenGL context
CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------
return 0;