aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 03205afb..285ce9e3 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -5690,6 +5690,12 @@ CreateGraphicsPipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t
for (i = 0; i < count; i++) {
pPipeNode[i] = new PIPELINE_NODE;
pPipeNode[i]->initGraphicsPipeline(&pCreateInfos[i]);
+
+ auto renderpass_it = dev_data->renderPassMap.find(pCreateInfos[i].renderPass);
+ if (renderpass_it != dev_data->renderPassMap.end()) {
+ pPipeNode[i]->renderPass = renderpass_it->second;
+ }
+
skipCall |= verifyPipelineCreateState(dev_data, device, pPipeNode, i);
}