diff options
| author | Michael Lentine <mlentine@google.com> | 2016-02-03 16:51:46 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-02-10 09:19:29 -0700 |
| commit | eba876d78708b086fc48abd38cd4e638e282b853 (patch) | |
| tree | 018123c70b06e3a1b477fc0907a9360a44426bf9 /layers/param_checker.cpp | |
| parent | 32bce170582e151c13df697f410a8ccda72454b3 (diff) | |
| download | usermoji-eba876d78708b086fc48abd38cd4e638e282b853.tar.xz | |
layers: Enable Wall and Werror.
Diffstat (limited to 'layers/param_checker.cpp')
| -rw-r--r-- | layers/param_checker.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp index 7f085940..3aa0f567 100644 --- a/layers/param_checker.cpp +++ b/layers/param_checker.cpp @@ -4053,10 +4053,9 @@ bool PreCreateGraphicsPipelines( "vkCreateGraphicsPipelines parameter, VkStructureType pCreateInfos->pColorBlendState->sType, is an invalid enumerator"); return false; } - if(pCreateInfos->pColorBlendState->logicOpEnable == VK_TRUE && - pCreateInfos->pColorBlendState->logicOp < VK_LOGIC_OP_BEGIN_RANGE || - pCreateInfos->pColorBlendState->logicOp > VK_LOGIC_OP_END_RANGE) - { + if (pCreateInfos->pColorBlendState->logicOpEnable == VK_TRUE && + (pCreateInfos->pColorBlendState->logicOp < VK_LOGIC_OP_BEGIN_RANGE || + pCreateInfos->pColorBlendState->logicOp > VK_LOGIC_OP_END_RANGE)) { log_msg(mdd(device), VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__, 1, "PARAMCHECK", "vkCreateGraphicsPipelines parameter, VkLogicOp pCreateInfos->pColorBlendState->logicOp, is an unrecognized enumerator"); return false; |
