Allocate enough space in the QVector for resolve attachments

This commit is contained in:
baldurk
2017-06-21 21:16:25 +01:00
parent 72abd054c8
commit f8aa58343a
@@ -1318,7 +1318,7 @@ QVector<BoundResource> CommonPipelineState::GetOutputTargets()
int idx = 0;
ret.resize(rp.colorAttachments.count);
ret.resize(rp.colorAttachments.count+rp.resolveAttachments.count);
for(int i = 0; i < rp.colorAttachments.count; i++)
{
if(rp.colorAttachments[i] < (uint32_t)fb.attachments.count)