summaryrefslogtreecommitdiffstats
path: root/src/platformsupport
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-05-02 17:36:49 -0700
committerThiago Macieira <thiago.macieira@intel.com>2020-05-05 12:23:49 -0700
commit64349c3fd5d6c2acabd1cfd5119a7060b017fdc0 (patch)
tree4a4c97626515d82d4a0de6d7a7031928aaf8bc9c /src/platformsupport
parentd0c028e898be8c71101b4e3d04b97aec8a2bfb7d (diff)
Fix Mesa warning that MESA_EGL_NO_X11_HEADERS is deprecated
The warning isn't printed when EGL_NO_X11 (the new macro) is defined. Fixes: QTBUG-80042 Pick-To: 5.15 Change-Id: I99ab0f318b1c43b89888fffd160b5d99f94c8c9b Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/platformsupport')
-rw-r--r--src/platformsupport/eglconvenience/qt_egl_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platformsupport/eglconvenience/qt_egl_p.h b/src/platformsupport/eglconvenience/qt_egl_p.h
index ea554927de..bf37d07fd8 100644
--- a/src/platformsupport/eglconvenience/qt_egl_p.h
+++ b/src/platformsupport/eglconvenience/qt_egl_p.h
@@ -52,6 +52,9 @@
//
#ifdef QT_EGL_NO_X11
+# ifndef EGL_NO_X11
+# define EGL_NO_X11
+# endif
# ifndef MESA_EGL_NO_X11_HEADERS
# define MESA_EGL_NO_X11_HEADERS // MESA
# endif