summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2019-08-27 10:56:49 +0200
committerraysan5 <[email protected]>2019-08-27 10:56:49 +0200
commitc661cad692f30cba08b1fac4437b08438128ffcc (patch)
tree534427bbc526833d02ec4e05333e06b18f2d6ad2 /examples
parent37a6f120377e28d5499f130ff346848a3983bee8 (diff)
downloadraylib-c661cad692f30cba08b1fac4437b08438128ffcc.tar.gz
raylib-c661cad692f30cba08b1fac4437b08438128ffcc.zip
Review all RL_CALLOC() calls
All data should be properly initialized by now
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