summaryrefslogtreecommitdiffstats
path: root/src/render/backend/attachmentpack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/backend/attachmentpack.cpp')
-rw-r--r--src/render/backend/attachmentpack.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/backend/attachmentpack.cpp b/src/render/backend/attachmentpack.cpp
index 0cd5d8673..00b70a7aa 100644
--- a/src/render/backend/attachmentpack.cpp
+++ b/src/render/backend/attachmentpack.cpp
@@ -59,13 +59,13 @@ AttachmentPack::AttachmentPack(const RenderTarget *target,
for (Qt3DCore::QNodeId outputId : outputIds) {
const RenderTargetOutput *output = attachmentManager->lookupResource(outputId);
if (output)
- m_attachments.append(*output->attachment());
+ m_attachments.push_back(*output->attachment());
}
// Create actual DrawBuffers list that is used for glDrawBuffers
// If nothing is specified, use all the attachments as draw buffers
- if (drawBuffers.isEmpty()) {
+ if (drawBuffers.empty()) {
m_drawBuffers.reserve(m_attachments.size());
for (const Attachment &attachment : qAsConst(m_attachments))
// only consider Color Attachments
@@ -82,7 +82,7 @@ AttachmentPack::AttachmentPack(const RenderTarget *target,
// return index of given attachment within actual draw buffers list
int AttachmentPack::getDrawBufferIndex(QRenderTargetOutput::AttachmentPoint attachmentPoint) const
{
- for (int i = 0; i < m_drawBuffers.size(); i++)
+ for (size_t i = 0; i < m_drawBuffers.size(); i++)
if (m_drawBuffers.at(i) == (int)attachmentPoint)
return i;
return -1;