From 1f4dc3aa8461e58068951fefe1cd011fd923e9dd Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Wed, 28 Sep 2022 11:26:00 -0400 Subject: only wait for buffers once. fix chunk mesh edges --- engine/xe_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine') 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(); -- cgit v1.2.3-freya