From 0a4461f47014dff6ebf45c03f9cc23ea05fbf43d Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 24 Mar 2016 11:42:09 +1300 Subject: layers: remove weird double assignment to pAttachments --- layers/core_validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 62507903..63ca5362 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -3033,7 +3033,7 @@ static VkBool32 verifyPipelineCreateState(layer_data *my_data, const VkDevice de if (pPipeline->graphicsPipelineCI.pColorBlendState != NULL) { if (!my_data->physDevProperties.features.independentBlend) { if (pPipeline->attachments.size() > 0) { - VkPipelineColorBlendAttachmentState *pAttachments = pAttachments = &pPipeline->attachments[0]; + VkPipelineColorBlendAttachmentState *pAttachments = &pPipeline->attachments[0]; for (size_t i = 1; i < pPipeline->attachments.size(); i++) { if ((pAttachments[0].blendEnable != pAttachments[i].blendEnable) || (pAttachments[0].srcColorBlendFactor != pAttachments[i].srcColorBlendFactor) || -- cgit v1.2.3