mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
[model] Reset mod_numknown when clearing models
Vulkan actually needs Mod_ClearAll, and mod_numknown not getting reset was the actual cause of the segfault.
This commit is contained in:
parent
488ccdc512
commit
5821ef8d1f
2 changed files with 2 additions and 0 deletions
|
@ -178,6 +178,7 @@ Mod_ClearAll (void)
|
|||
for (i = 0; i < mod_numknown; i++) {
|
||||
mod_unload_model (i);
|
||||
}
|
||||
mod_numknown = 0;
|
||||
}
|
||||
|
||||
model_t *
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue