diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2018-03-28 14:20:07 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2018-03-29 08:59:08 -0600 |
| commit | 7e9da8fad889ff0fdd0c4020934c4c33d8657e9d (patch) | |
| tree | 4ad62999401c784496cf094b37a7c015a23d86ab /layers/core_validation.cpp | |
| parent | 20a980340e49337872185d8e383490f7528d709b (diff) | |
| download | usermoji-7e9da8fad889ff0fdd0c4020934c4c33d8657e9d.tar.xz | |
layers: Remove unnecessary destCmdPool null check
Change-Id: I69bb77b1874fa2148ab7902e71e57a15589ba684
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 4 |
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); } |
