diff options
-rw-r--r-- | examples/qt3d/wireframe/TrefoilKnot.qml | 2 | ||||
-rw-r--r-- | examples/qt3d/wireframe/main.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/qt3d/wireframe/TrefoilKnot.qml b/examples/qt3d/wireframe/TrefoilKnot.qml index 104866d70..07c4e9627 100644 --- a/examples/qt3d/wireframe/TrefoilKnot.qml +++ b/examples/qt3d/wireframe/TrefoilKnot.qml @@ -73,6 +73,6 @@ Entity { Mesh { id: mesh - source: "assets/obj/trefoil.obj" + source: "qrc:/assets/obj/trefoil.obj" } } diff --git a/examples/qt3d/wireframe/main.cpp b/examples/qt3d/wireframe/main.cpp index 760786ee8..629dc63c6 100644 --- a/examples/qt3d/wireframe/main.cpp +++ b/examples/qt3d/wireframe/main.cpp @@ -56,6 +56,9 @@ int main(int argc, char* argv[]) { + // Force Qt3D OpenGL renderer + qputenv("QT3D_RENDERER", "opengl"); + QGuiApplication app(argc, argv); Qt3DExtras::Quick::Qt3DQuickWindow view; |