summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/deferred-renderer-cpp/gbuffer.cpp
diff options
context:
space:
mode:
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);
}