summaryrefslogtreecommitdiffstats
path: root/tests/manual/paintedtexture-cpp/scene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/paintedtexture-cpp/scene.cpp')
-rw-r--r--tests/manual/paintedtexture-cpp/scene.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/manual/paintedtexture-cpp/scene.cpp b/tests/manual/paintedtexture-cpp/scene.cpp
index 83ba172f7..e5ef6730f 100644
--- a/tests/manual/paintedtexture-cpp/scene.cpp
+++ b/tests/manual/paintedtexture-cpp/scene.cpp
@@ -123,12 +123,9 @@ Scene::Scene(Qt3DCore::QEntity *rootEntity)
mat->setSpecular(QColor(255, 255, 255));
mat->setDiffuse(tex);
- auto renderer = new Qt3DRender::QGeometryRenderer;
- renderer->setView(cuboid);
-
//Cuboid
m_cuboidEntity = new Qt3DCore::QEntity(m_rootEntity);
- m_cuboidEntity->addComponent(renderer);
+ m_cuboidEntity->addComponent(cuboid);
m_cuboidEntity->addComponent(mat);
m_cuboidEntity->addComponent(m_transform);