aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2015-07-13 15:28:47 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-07-17 10:05:22 -0600
commitd2d3c3f47fa795dd6d1c70cef9ccdc350c6aea0f (patch)
tree5e426a849efe3fe37f539800ebfd71783c935f92 /layers/draw_state.cpp
parentea092618b1b6df81c09c6d3abb30516a7daa321e (diff)
downloadusermoji-d2d3c3f47fa795dd6d1c70cef9ccdc350c6aea0f.tar.xz
Windows: more changes for windows compiler
Diffstat (limited to 'layers/draw_state.cpp')
-rw-r--r--layers/draw_state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index 49e91f4b..816cf359 100644
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -2788,7 +2788,7 @@ VK_LAYER_EXPORT VkResult VKAPI vkCreateRenderPass(VkDevice device, const VkRende
for (uint32_t i = 0; i < localRPCI->subpassCount; i++) {
VkSubpassDescription *subpass = (VkSubpassDescription *) &localRPCI->pSubpasses[i];
const uint32_t attachmentCount = subpass->inputCount +
- subpass->colorCount * (1 + (bool) subpass->resolveAttachments) +
+ subpass->colorCount * (1 + (subpass->resolveAttachments?1:0)) +
subpass->preserveCount;
VkAttachmentReference *attachments = new VkAttachmentReference[attachmentCount];