summaryrefslogtreecommitdiffstats
path: root/tests/manual/rhi/mrt/mrt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/rhi/mrt/mrt.cpp')
-rw-r--r--tests/manual/rhi/mrt/mrt.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/manual/rhi/mrt/mrt.cpp b/tests/manual/rhi/mrt/mrt.cpp
index dc72c7d194..dfec5bb1d1 100644
--- a/tests/manual/rhi/mrt/mrt.cpp
+++ b/tests/manual/rhi/mrt/mrt.cpp
@@ -143,10 +143,10 @@ void Window::customInit()
}
QRhiTextureRenderTargetDescription rtDesc;
- QVector<QRhiColorAttachment> att;
+ QRhiColorAttachment att[ATTCOUNT];
for (int i = 0; i < ATTCOUNT; ++i)
- att.append(QRhiColorAttachment(d.colData[i].tex));
- rtDesc.setColorAttachments(att);
+ att[i] = QRhiColorAttachment(d.colData[i].tex);
+ rtDesc.setColorAttachments(att, att + ATTCOUNT);
d.rt = m_r->newTextureRenderTarget(rtDesc);
d.releasePool << d.rt;
d.rtRp = d.rt->newCompatibleRenderPassDescriptor();