diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-04-05 14:33:09 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2023-04-05 21:30:29 +0200 |
commit | ef27cc126c38ff14360bebeeb3100671df9e4cf4 (patch) | |
tree | 082359993700dfc6ba3c7126df8975792e556ad6 /src/gui/platform/macos/qcocoanativeinterface.mm | |
parent | b408bae864d46423db25a60e9be7dc31c722e2b1 (diff) |
Guard qopenglcontext_p.h with the QT_NO_OPENGL check
QtGui/private/qopenglcontext_p.h needs to be guarded to avoid
compilation errors when building Qt with openGL disabled.
Fixes: QTBUG-112656
Pick-to: 6.5
Change-Id: I21d120ed2bdb22e7aa2338e396a9a426adb80dbe
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/gui/platform/macos/qcocoanativeinterface.mm')
-rw-r--r-- | src/gui/platform/macos/qcocoanativeinterface.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/platform/macos/qcocoanativeinterface.mm b/src/gui/platform/macos/qcocoanativeinterface.mm index a41f9b16da..58c19c7781 100644 --- a/src/gui/platform/macos/qcocoanativeinterface.mm +++ b/src/gui/platform/macos/qcocoanativeinterface.mm @@ -1,7 +1,10 @@ // Copyright (C) 2020 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only -#include <QtGui/private/qopenglcontext_p.h> +#ifndef QT_NO_OPENGL +# include <QtGui/private/qopenglcontext_p.h> +#endif + #include <QtGui/private/qguiapplication_p.h> #include <qpa/qplatformopenglcontext.h> #include <qpa/qplatformintegration.h> |