From 45e11be96a7503a0cfe29bbbcc8d885d81ab9591 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 25 Sep 2024 20:54:32 +0300 Subject: UnloadMaterial can also optionally free textures and shader. --- examples/iqm_test/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/iqm_test') 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" ) -- cgit v1.2.3