diff options
| author | jussi | 2024-09-25 20:54:32 +0300 |
|---|---|---|
| committer | jussi | 2024-09-25 20:54:32 +0300 |
| commit | 45e11be96a7503a0cfe29bbbcc8d885d81ab9591 (patch) | |
| tree | bcd06238db0d83c62f117acca4f8d2d321c31e6a /examples/iqm_test/main.lua | |
| parent | cd6471d339c394a37a1d46119818e0cabdcf5b42 (diff) | |
| download | reilua-enhanced-45e11be96a7503a0cfe29bbbcc8d885d81ab9591.tar.gz reilua-enhanced-45e11be96a7503a0cfe29bbbcc8d885d81ab9591.tar.bz2 reilua-enhanced-45e11be96a7503a0cfe29bbbcc8d885d81ab9591.zip | |
UnloadMaterial can also optionally free textures and shader.
Diffstat (limited to 'examples/iqm_test/main.lua')
| -rw-r--r-- | examples/iqm_test/main.lua | 2 |
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" ) |
