Only check blend state if blend is enabled.
authorMichael Lentine <mlentine@google.com>
Tue, 15 Sep 2015 19:59:56 +0000 (14:59 -0500)
committerJeremy Hayes <jeremy@lunarg.com>
Fri, 2 Oct 2015 18:12:41 +0000 (12:12 -0600)
layers/param_checker.cpp

index 7fd81da..fcced6a 100644 (file)
@@ -4350,7 +4350,7 @@ bool PreCreateGraphicsPipelines(
         "vkCreateGraphicsPipelines parameter, VkLogicOp pCreateInfos->pColorBlendState->logicOp, is an unrecognized enumerator");
         return false;
     }
-    if(pCreateInfos->pColorBlendState->pAttachments != nullptr)
+    if(pCreateInfos->pColorBlendState->pAttachments != nullptr && pCreateInfos->pColorBlendState->pAttachments->blendEnable == VK_TRUE)
     {
     if(pCreateInfos->pColorBlendState->pAttachments->srcBlendColor < VK_BLEND_BEGIN_RANGE ||
         pCreateInfos->pColorBlendState->pAttachments->srcBlendColor > VK_BLEND_END_RANGE)