[model] Ensure all models are unloaded

Cleans up not only vulkan (had to remove the clearing from vulkan to
avoid a segfault).
This commit is contained in:
Bill Currie 2023-03-06 01:52:57 +09:00
parent e19e7cad0c
commit d14162eed9

View file

@ -103,6 +103,7 @@ static void Mod_CallbackLoad (void *object, cache_allocator_t allocator);
static void
mod_shutdown (void *data)
{
Mod_ClearAll ();
for (size_t i = 0; i < mod_blocks.size; i++) {
free (mod_blocks.a[i]);
}