summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2022-11-30 11:04:50 +0100
committerPeter Varga <pvarga@inf.u-szeged.hu>2022-12-01 09:02:07 +0100
commit5507f6002ea3432169ed9c3c50e9bf337cecee41 (patch)
tree50aae60d5cec039c4d66c3010cf27b7b424a85d1
parent0fa4473fe42139a39df64a09565733f198b2ce39 (diff)
Fix -no-opengl build
Pick-to: 6.4 Change-Id: I65e4f7e045c55868000f67e32227b372f990af1c Reviewed-by: Michal Klocek <michal.klocek@qt.io>
-rw-r--r--src/core/ozone/gl_share_context_qt.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/ozone/gl_share_context_qt.cpp b/src/core/ozone/gl_share_context_qt.cpp
index 02fc02e5d..1ed5a48e4 100644
--- a/src/core/ozone/gl_share_context_qt.cpp
+++ b/src/core/ozone/gl_share_context_qt.cpp
@@ -4,14 +4,16 @@
#include "gl_share_context_qt.h"
#include <QtGui/qtgui-config.h>
#include <qpa/qplatformnativeinterface.h>
-#include <QtGui/qopenglcontext_platform.h>
-#if defined(Q_OS_MACOS)
-#include "macos_context_type_helper.h"
-#endif
+
#if QT_CONFIG(opengl)
+#include <QtGui/qopenglcontext_platform.h>
#include <QOpenGLContext>
#include <QOpenGLExtraFunctions>
-#endif
+
+#if defined(Q_OS_MACOS)
+#include "macos_context_type_helper.h"
+#endif // defined(Q_OS_MACOS)
+#endif // QT_CONFIG(opengl)
namespace QtWebEngineCore {