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