diff options
Diffstat (limited to 'examples/qt3d/controls/main.cpp')
-rw-r--r-- | examples/qt3d/controls/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/qt3d/controls/main.cpp b/examples/qt3d/controls/main.cpp index b5e448538..d2cca5bb5 100644 --- a/examples/qt3d/controls/main.cpp +++ b/examples/qt3d/controls/main.cpp @@ -50,10 +50,14 @@ #include <QGuiApplication> #include <QQuickView> +#include <Qt3DRender/qt3drender-config.h> int main(int argc, char **argv) { QGuiApplication app(argc, argv); +#if !QT_CONFIG(qt3d_rhi_renderer) + qputenv("QSG_RHI_BACKEND", "opengl"); +#endif QQuickView view; |