layers: OT: null out handles in pipeline creation if we dont call down
Signed-off-by: Chris Forbes <chrisforbes@google.com>
diff --git a/layers/object_tracker.cpp b/layers/object_tracker.cpp
index b444354..c0ebb45 100644
--- a/layers/object_tracker.cpp
+++ b/layers/object_tracker.cpp
@@ -3619,6 +3619,9 @@
}
lock.unlock();
if (skip_call) {
+ for (uint32_t i = 0; i < createInfoCount; i++) {
+ pPipelines[i] = VK_NULL_HANDLE;
+ }
return VK_ERROR_VALIDATION_FAILED_EXT;
}
VkResult result = get_dispatch_table(ot_device_table_map, device)
@@ -3661,6 +3664,9 @@
}
lock.unlock();
if (skip_call) {
+ for (uint32_t i = 0; i < createInfoCount; i++) {
+ pPipelines[i] = VK_NULL_HANDLE;
+ }
return VK_ERROR_VALIDATION_FAILED_EXT;
}
VkResult result = get_dispatch_table(ot_device_table_map, device)