twn_models.c: ignore deinit if it's not needed
This commit is contained in:
parent
145b040a0f
commit
8c248cb3fb
@ -222,7 +222,8 @@ void free_model_cache(void) {
|
|||||||
|
|
||||||
|
|
||||||
void model_state_deinit(void) {
|
void model_state_deinit(void) {
|
||||||
SDL_assert(model_load_initialized);
|
if (!model_load_initialized)
|
||||||
|
return;
|
||||||
free_model_cache();
|
free_model_cache();
|
||||||
arrfree(model_load_queue);
|
arrfree(model_load_queue);
|
||||||
SDL_DestroyMutex(model_load_mutex);
|
SDL_DestroyMutex(model_load_mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user