summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/deferred-renderer-cpp/gbuffer.cpp
diff options
context:
space:
mode:
authorRobert Brock <robert.brock@kdab.com>2016-02-24 14:32:40 +0000
committerRobert Brock <robert.brock@kdab.com>2016-02-25 11:46:24 +0000
commitdfe0d0cb24a554455f774741e06e1cbd50831b1a (patch)
tree3fbf552a54f3fcd9c2332568300ec9c9f62ffb44 /examples/qt3d/deferred-renderer-cpp/gbuffer.cpp
parent143b1c9a0993c371941919acbe52c76f7636502e (diff)
Remove QRenderAttachment name property
As per API review, name property is not needed as we can simply use the QObject::objectName property. Change-Id: I575c658a4af68145b50ad03e55971856479225e6 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/deferred-renderer-cpp/gbuffer.cpp')
-rw-r--r--examples/qt3d/deferred-renderer-cpp/gbuffer.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/examples/qt3d/deferred-renderer-cpp/gbuffer.cpp b/examples/qt3d/deferred-renderer-cpp/gbuffer.cpp
index da128f784..cdf47d119 100644
--- a/examples/qt3d/deferred-renderer-cpp/gbuffer.cpp
+++ b/examples/qt3d/deferred-renderer-cpp/gbuffer.cpp
@@ -67,13 +67,6 @@ GBuffer::GBuffer(Qt3DCore::QNode *parent)
Qt3DRender::QRenderAttachment::DepthAttachment
};
- const QString attachmentNames[AttachmentsCount] = {
- QString::fromLatin1("color"),
- QString::fromLatin1("position"),
- QString::fromLatin1("normal"),
- QString::fromLatin1("depth")
- };
-
for (int i = 0; i < AttachmentsCount; i++) {
Qt3DRender::QRenderAttachment *attachment = new Qt3DRender::QRenderAttachment(this);
@@ -88,7 +81,6 @@ GBuffer::GBuffer(Qt3DCore::QNode *parent)
attachment->setTexture(m_textures[i]);
attachment->setType(attachmentTypes[i]);
- attachment->setName(attachmentNames[i]);
addAttachment(attachment);
}