summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2022-11-30 11:04:50 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-12-02 08:09:59 +0000
commit8b0f5db44987168cd5d3b9ff539e01b68ac18c9c (patch)
treef059bf026117bacc4a517c7a822d6fb1c42e0bf4
parentd211684b1486876ce03aba7264709a9dd247a40a (diff)
Fix -no-opengl build
Change-Id: I65e4f7e045c55868000f67e32227b372f990af1c Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 5507f6002ea3432169ed9c3c50e9bf337cecee41) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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 {