Fix assertion to allow 8 color attachments. Refs #743

This commit is contained in:
baldurk
2017-09-14 10:48:44 +01:00
parent dbc445de49
commit 139b122cc4
+2 -2
View File
@@ -2806,9 +2806,9 @@ void WrappedVulkan::AddDrawcall(const DrawcallDescription &d, bool hasEvents)
vector<uint32_t> &colAtt = m_CreationInfo.m_RenderPass[rp].subpasses[sp].colorAttachments;
int32_t dsAtt = m_CreationInfo.m_RenderPass[rp].subpasses[sp].depthstencilAttachment;
RDCASSERT(colAtt.size() < 8);
RDCASSERT(colAtt.size() <= ARRAY_COUNT(draw.outputs));
for(int i = 0; i < 8 && i < (int)colAtt.size(); i++)
for(size_t i = 0; i < ARRAY_COUNT(draw.outputs) && i < colAtt.size(); i++)
{
if(colAtt[i] == VK_ATTACHMENT_UNUSED)
continue;