diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-11-30 14:56:52 +1300 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-12-02 07:48:08 +1300 |
| commit | 0d42fa335fc303a646416b4a7fe0bb3faa49ffd3 (patch) | |
| tree | c29feb3c5e808e869cc50f884b6b5e9857bec425 /layers/object_tracker.cpp | |
| parent | f300f33b41f0df77a33818fa94d316defadad665 (diff) | |
| download | usermoji-0d42fa335fc303a646416b4a7fe0bb3faa49ffd3.tar.xz | |
layers: OT: null out handles in pipeline creation if we dont call down
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/object_tracker.cpp')
| -rw-r--r-- | layers/object_tracker.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layers/object_tracker.cpp b/layers/object_tracker.cpp index b4443547..c0ebb45a 100644 --- a/layers/object_tracker.cpp +++ b/layers/object_tracker.cpp @@ -3619,6 +3619,9 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateGraphicsPipelines(VkDevice device, VkPipeli } 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 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateComputePipelines(VkDevice device, VkPipelin } 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) |
