From 9ab0c71acff42e898e303b84bc9d451c50f97746 Mon Sep 17 00:00:00 2001 From: Michael Lentine Date: Tue, 15 Sep 2015 14:59:56 -0500 Subject: Only check blend state if blend is enabled. --- layers/param_checker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp index 7fd81daa..fcced6a2 100644 --- a/layers/param_checker.cpp +++ b/layers/param_checker.cpp @@ -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) -- cgit v1.2.3