summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/models/models_material_pbr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/models/models_material_pbr.c b/examples/models/models_material_pbr.c
index fea30cf4..0f896f21 100644
--- a/examples/models/models_material_pbr.c
+++ b/examples/models/models_material_pbr.c
@@ -100,8 +100,7 @@ int main(void)
// De-Initialization
//--------------------------------------------------------------------------------------
- // TODO: Unload materials and shaders
-
+ UnloadMaterial(model.materials[0]); // Unload material: shader and textures
UnloadModel(model); // Unload model
CloseWindow(); // Close window and OpenGL context