aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-11-30 14:26:50 +1300
committerChris Forbes <chrisforbes@google.com>2016-12-02 07:48:08 +1300
commit06706ce062f88b5abe2d29dc573981b30854b285 (patch)
tree12cf32b06c75be0143a24355c645906166e71e5e /layers/core_validation.cpp
parent693847f0feb07c9c4276760f2c6a402e80beb311 (diff)
downloadusermoji-06706ce062f88b5abe2d29dc573981b30854b285.tar.xz
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 <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 5957a66f..8ab9a64a 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();