summaryrefslogtreecommitdiff
path: root/engine/xe_model.cpp
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-09-28 10:51:15 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2022-09-28 10:51:15 -0400
commit50bd5c1a7e1bacf93b6a4e900d2ec282223378a1 (patch)
tree34d302a61c4229304f19bed19f5b8f73aec000b0 /engine/xe_model.cpp
parentbetter model and texture cleanup (diff)
downloadminecraftvulkan-50bd5c1a7e1bacf93b6a4e900d2ec282223378a1.tar.gz
minecraftvulkan-50bd5c1a7e1bacf93b6a4e900d2ec282223378a1.tar.bz2
minecraftvulkan-50bd5c1a7e1bacf93b6a4e900d2ec282223378a1.zip
dont destroy buffers until not used
Diffstat (limited to 'engine/xe_model.cpp')
-rw-r--r--engine/xe_model.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/xe_model.cpp b/engine/xe_model.cpp
index 49d4c9d..a891d5f 100644
--- a/engine/xe_model.cpp
+++ b/engine/xe_model.cpp
@@ -53,6 +53,7 @@ void Model::deleteModel(Model* model) {
void Model::submitDeleteQueue(bool purge) {
for(Model* model: DELETION_QUEUE) {
+ vkDeviceWaitIdle(model->xeDevice.device());
try { delete model; } catch(int err) {};
}
DELETION_QUEUE.clear();