summaryrefslogtreecommitdiffhomepage
path: root/examples/models/models_mesh_generation.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2019-08-26 21:19:04 +0200
committerraysan5 <[email protected]>2019-08-26 21:19:04 +0200
commit37a6f120377e28d5499f130ff346848a3983bee8 (patch)
treee2b01adb9de0326c34c7776a5c742d1c3725c8dd /examples/models/models_mesh_generation.c
parentaddbd88833ffc9a2bd1fe33a83e683245324abd0 (diff)
downloadraylib-37a6f120377e28d5499f130ff346848a3983bee8.tar.gz
raylib-37a6f120377e28d5499f130ff346848a3983bee8.zip
Unload model shaders and textures
They are not automatically unloaded when unloading the model!
Diffstat (limited to 'examples/models/models_mesh_generation.c')
-rw-r--r--examples/models/models_mesh_generation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/models/models_mesh_generation.c b/examples/models/models_mesh_generation.c
index 6c0ae653..eaecb271 100644
--- a/examples/models/models_mesh_generation.c
+++ b/examples/models/models_mesh_generation.c
@@ -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;