From 06706ce062f88b5abe2d29dc573981b30854b285 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 30 Nov 2016 14:26:50 +1300 Subject: [PATCH] layers: CV: null out pipelines on validation failure If we don't call down the chain, creation of all the pipelines failed. Callers expect to inspect the handles for partial success -- don't leave uninitialized junk here. Signed-off-by: Chris Forbes --- layers/core_validation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 5957a66..8ab9a64 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -6871,6 +6871,7 @@ CreateGraphicsPipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t if (skip) { for (i = 0; i < count; i++) { delete pipe_state[i]; + pPipelines[i] = VK_NULL_HANDLE; } } else { lock.unlock(); -- 2.7.4