From 7e9da8fad889ff0fdd0c4020934c4c33d8657e9d Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Wed, 28 Mar 2018 14:20:07 -0600 Subject: layers: Remove unnecessary destCmdPool null check Change-Id: I69bb77b1874fa2148ab7902e71e57a15589ba684 --- layers/core_validation.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'layers/core_validation.cpp') 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); } -- cgit v1.2.3