mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 02:29:51 +01:00
vulkan: perform delete callbacks first since they can also queue
deletes.
This commit is contained in:
1 parent
15c4406df7
commit
8fcf93e462
1 file changed
+4
-4
@@ -1151,6 +1151,10 @@ void VulkanDeleteList::Take(VulkanDeleteList &del) {
|
||||
}
|
||||
|
||||
void VulkanDeleteList::PerformDeletes(VkDevice device) {
|
||||
for (auto &callback : callbacks_) {
|
||||
callback.func(callback.userdata);
|
||||
}
|
||||
callbacks_.clear();
|
||||
for (auto &cmdPool : cmdPools_) {
|
||||
vkDestroyCommandPool(device, cmdPool, nullptr);
|
||||
}
|
||||
@@ -1211,8 +1215,4 @@ void VulkanDeleteList::PerformDeletes(VkDevice device) {
|
||||
vkDestroyDescriptorSetLayout(device, descSetLayout, nullptr);
|
||||
}
|
||||
descSetLayouts_.clear();
|
||||
for (auto &callback : callbacks_) {
|
||||
callback.func(callback.userdata);
|
||||
}
|
||||
callbacks_.clear();
|
||||
}
|
||||
Reference in new issue
Block a user