From f3af9b8473bf775d9e449cfcec8e17960b3f75f3 Mon Sep 17 00:00:00 2001 From: Peter Varga Date: Tue, 2 Aug 2022 10:02:01 +0200 Subject: Fix -no-opengl build on Windows Change-Id: Id48824fb64125b1fdafcc54866eed8365d5ec3bb Reviewed-by: Michal Klocek (cherry picked from commit 38a6d268b09c49878b3a9b4819771f5c74925c35) Reviewed-by: Qt Cherry-pick Bot --- src/core/ozone/gl_surface_qt.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/ozone/gl_surface_qt.cpp b/src/core/ozone/gl_surface_qt.cpp index e46b49475..0d7f686e8 100644 --- a/src/core/ozone/gl_surface_qt.cpp +++ b/src/core/ozone/gl_surface_qt.cpp @@ -103,7 +103,11 @@ bool InitializeGLOneOffPlatform(uint64_t system_device_id) bool usingSoftwareDynamicGL() { +#if QT_CONFIG(opengl) return QtWebEngineCore::usingSoftwareDynamicGL(); +#else + return false; +#endif // QT_CONFIG(opengl) } scoped_refptr -- cgit v1.2.3