From 7c6ae74e549df65e73a9aafc641e702dee969a5a Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Wed, 12 May 2021 11:25:44 +0200 Subject: Fix build without Qt Quick 3D Change-Id: I5e181231080bbd39077b3d8b2f2d6ff8cdbae8b2 Reviewed-by: Daniel Smith Reviewed-by: Fabian Kosmale --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 667e25f..a2e3036 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -32,7 +32,9 @@ #include #include #include +#ifdef QT_QUICK3D_LIB #include +#endif #include "benchmark.h" #include "benchmarkrunner.h" @@ -250,8 +252,12 @@ void setupDefaultSurfaceFormat(int argc, char **argv, bool subprocess) } } +#ifdef QT_QUICK3D_LIB if (subprocess) QSurfaceFormat::setDefaultFormat(QQuick3D::idealSurfaceFormat()); +#else + Q_UNUSED(subprocess); +#endif if (frameCountShell) { QSurfaceFormat format = QSurfaceFormat::defaultFormat(); -- cgit v1.2.3