summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-09-30 15:40:42 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-09-30 15:40:42 -0400
commit5585b67a272704e136abe830c336603098914415 (patch)
tree6a154b6c71fc5d1dcd57fc391a6384c60b190da8 /engine
parentgreedy mesh texturing (diff)
downloadminecraftvulkan-5585b67a272704e136abe830c336603098914415.tar.gz
minecraftvulkan-5585b67a272704e136abe830c336603098914415.tar.bz2
minecraftvulkan-5585b67a272704e136abe830c336603098914415.zip
finalize greedy meshing
Diffstat (limited to 'engine')
-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 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) {};