mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Fix assertion to allow 8 color attachments. Refs #743
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user