summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-09-28 11:26:00 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2022-09-28 11:26:00 -0400
commit1f4dc3aa8461e58068951fefe1cd011fd923e9dd (patch)
tree27ec0ac896dd5435d2317a35130e92ad588e6756 /engine
parentdont destroy buffers until not used (diff)
downloadminecraftvulkan-1f4dc3aa8461e58068951fefe1cd011fd923e9dd.tar.gz
minecraftvulkan-1f4dc3aa8461e58068951fefe1cd011fd923e9dd.tar.bz2
minecraftvulkan-1f4dc3aa8461e58068951fefe1cd011fd923e9dd.zip
only wait for buffers once. fix chunk mesh edges
Diffstat (limited to 'engine')
-rw-r--r--engine/xe_model.cpp2
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();