Fix incorrect comparison

This commit is contained in:
baldurk
2016-02-07 18:41:31 +01:00
parent 4e113a08c7
commit 245b4cca92
+1 -1
View File
@@ -160,7 +160,7 @@ void VulkanCreationInfo::RenderPass::Init(const VkRenderPassCreateInfo* pCreateI
for(uint32_t i=0; i < subp.colorCount; i++)
colorAttachments[i] = subp.colorAttachments[i].attachment;
depthstencilAttachment = (subp.depthStencilAttachment.attachment == VK_ATTACHMENT_UNUSED
depthstencilAttachment = (subp.depthStencilAttachment.attachment != VK_ATTACHMENT_UNUSED
? (int32_t)subp.depthStencilAttachment.attachment : -1);
}