aboutsummaryrefslogtreecommitdiff
path: root/layers/param_checker.cpp
diff options
context:
space:
mode:
authorMichael Lentine <mlentine@google.com>2015-09-15 14:59:56 -0500
committerJeremy Hayes <jeremy@lunarg.com>2015-10-02 12:12:41 -0600
commit9ab0c71acff42e898e303b84bc9d451c50f97746 (patch)
tree5373efb917c0370ff96fe587f517c4b27f8d15dc /layers/param_checker.cpp
parent06a5a842d0ea3cf1f6cddcb1eac96faad3ff1f42 (diff)
downloadusermoji-9ab0c71acff42e898e303b84bc9d451c50f97746.tar.xz
Only check blend state if blend is enabled.
Diffstat (limited to 'layers/param_checker.cpp')
-rw-r--r--layers/param_checker.cpp2
1 files changed, 1 insertions, 1 deletions
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)