diff --git a/libs/models/model.c b/libs/models/model.c index 6e5aade5d..9258f6098 100644 --- a/libs/models/model.c +++ b/libs/models/model.c @@ -178,6 +178,7 @@ Mod_ClearAll (void) for (i = 0; i < mod_numknown; i++) { mod_unload_model (i); } + mod_numknown = 0; } model_t * diff --git a/libs/video/renderer/vid_render_vulkan.c b/libs/video/renderer/vid_render_vulkan.c index a6c7f9950..17e73acb7 100644 --- a/libs/video/renderer/vid_render_vulkan.c +++ b/libs/video/renderer/vid_render_vulkan.c @@ -725,6 +725,7 @@ vulkan_vid_render_shutdown (void) QFV_DeviceWaitIdle (device); SCR_Shutdown (); + Mod_ClearAll (); Vulkan_Compose_Shutdown (vulkan_ctx); Vulkan_Translucent_Shutdown (vulkan_ctx);