aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index fc735772..a3dd9915 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -4518,9 +4518,7 @@ VKAPI_ATTR void VKAPI_CALL DestroyCommandPool(VkDevice device, VkCommandPool com
unique_lock_t lock(global_lock);
bool skip = PreCallValidateDestroyCommandPool(dev_data, commandPool);
if (!skip) {
- if (commandPool != VK_NULL_HANDLE) {
- PreCallRecordDestroyCommandPool(dev_data, commandPool);
- }
+ PreCallRecordDestroyCommandPool(dev_data, commandPool);
lock.unlock();
dev_data->dispatch_table.DestroyCommandPool(device, commandPool, pAllocator);
}