From d2d3c3f47fa795dd6d1c70cef9ccdc350c6aea0f Mon Sep 17 00:00:00 2001 From: Tony Barbour Date: Mon, 13 Jul 2015 15:28:47 -0600 Subject: Windows: more changes for windows compiler --- layers/draw_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/draw_state.cpp') 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]; -- cgit v1.2.3