aboutsummaryrefslogtreecommitdiff
path: root/examples/models/models_obj_viewer.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2019-08-26 21:19:04 +0200
committerraysan5 <raysan5@gmail.com>2019-08-26 21:19:04 +0200
commit37a6f120377e28d5499f130ff346848a3983bee8 (patch)
treee2b01adb9de0326c34c7776a5c742d1c3725c8dd /examples/models/models_obj_viewer.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_obj_viewer.c')
-rw-r--r--examples/models/models_obj_viewer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/models/models_obj_viewer.c b/examples/models/models_obj_viewer.c
index 3f43e1c8..1d15fdd9 100644
--- a/examples/models/models_obj_viewer.c
+++ b/examples/models/models_obj_viewer.c
@@ -116,6 +116,7 @@ int main(void)
// De-Initialization
//--------------------------------------------------------------------------------------
+ UnloadTexture(texture); // Unload texture
UnloadModel(model); // Unload model
ClearDroppedFiles(); // Clear internal buffers