diff options
Diffstat (limited to 'tests/manual/raster-cpp/main.cpp')
-rw-r--r-- | tests/manual/raster-cpp/main.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/manual/raster-cpp/main.cpp b/tests/manual/raster-cpp/main.cpp index 4f902cad8..2eaeea6ec 100644 --- a/tests/manual/raster-cpp/main.cpp +++ b/tests/manual/raster-cpp/main.cpp @@ -117,12 +117,9 @@ int main(int argc, char **argv) Qt3DExtras::QPhongMaterial *material = new Qt3DExtras::QPhongMaterial(rootEntity); material->setDiffuse(Qt::red); - auto renderer = new Qt3DRender::QGeometryRenderer; - renderer->setView(mesh); - // Cylinder Qt3DCore::QEntity *cylinder = new Qt3DCore::QEntity(rootEntity); - cylinder->addComponent(renderer); + cylinder->addComponent(mesh); cylinder->addComponent(transform); cylinder->addComponent(material); |