summaryrefslogtreecommitdiff
path: root/examples/iqm_test/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/iqm_test/main.lua')
-rw-r--r--examples/iqm_test/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/iqm_test/main.lua b/examples/iqm_test/main.lua
index 66aed82..01afebe 100644
--- a/examples/iqm_test/main.lua
+++ b/examples/iqm_test/main.lua
@@ -43,7 +43,7 @@ function RL.init()
} )
model = RL.LoadModel( RL.GetBasePath().."../resources/iqm/monkey.iqm" )
-- Unload old material.
- RL.UnloadMaterial( RL.GetModelMaterial( model, 0 ) )
+ RL.UnloadMaterial( RL.GetModelMaterial( model, 0 ), true )
RL.SetModelMaterial( model, 0, material )
animations = RL.LoadModelAnimations( RL.GetBasePath().."../resources/iqm/monkey.iqm" )