diff options
Diffstat (limited to 'engine/xe_model.cpp')
-rw-r--r-- | engine/xe_model.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/xe_model.cpp b/engine/xe_model.cpp index 53d0158..5b85932 100644 --- a/engine/xe_model.cpp +++ b/engine/xe_model.cpp @@ -52,6 +52,7 @@ void Model::deleteModel(Model* model) { } void Model::submitDeleteQueue(bool purge) { + if(DELETION_QUEUE.size() < 1) return; vkDeviceWaitIdle(Engine::getInstance()->xeDevice.device()); for(Model* model: DELETION_QUEUE) { try { delete model; } catch(int err) {}; |