render: define EGL_NO_PLATFORM_SPECIFIC_TYPES (#2452)
This avoids Xlib.h inclusion via EGL headers. See [1] for discussion. This change is based on a Weston commit [2]. [1]: https://github.com/KhronosGroup/EGL-Registry/pull/111 [2]: https://gitlab.freedesktop.org/wayland/weston/commit/526765ddfdfd
This commit is contained in:
parent
0f9b2bfa64
commit
f0ddcd361e
|
@ -15,6 +15,9 @@
|
||||||
#ifndef EGL_NO_X11
|
#ifndef EGL_NO_X11
|
||||||
#define EGL_NO_X11
|
#define EGL_NO_X11
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef EGL_NO_PLATFORM_SPECIFIC_TYPES
|
||||||
|
#define EGL_NO_PLATFORM_SPECIFIC_TYPES
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wlr/config.h>
|
#include <wlr/config.h>
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
#ifndef EGL_NO_X11
|
#ifndef EGL_NO_X11
|
||||||
#define EGL_NO_X11
|
#define EGL_NO_X11
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef EGL_NO_PLATFORM_SPECIFIC_TYPES
|
||||||
|
#define EGL_NO_PLATFORM_SPECIFIC_TYPES
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
|
|
Loading…
Reference in New Issue