diff options
Diffstat (limited to 'tests/manual/texture-updates-cpp/scene.cpp')
-rw-r--r-- | tests/manual/texture-updates-cpp/scene.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/manual/texture-updates-cpp/scene.cpp b/tests/manual/texture-updates-cpp/scene.cpp index 65277227c..a68052653 100644 --- a/tests/manual/texture-updates-cpp/scene.cpp +++ b/tests/manual/texture-updates-cpp/scene.cpp @@ -86,12 +86,9 @@ Scene::Scene(Qt3DCore::QEntity *rootEntity) mat->setSpecular(QColor(255, 255, 255)); mat->setDiffuse(m_texture); - 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); } |