Skip to content

Commit

Permalink
egl: Don't force X11 support when testing for EGL.
Browse files Browse the repository at this point in the history
Fixes building Wayland support on embedded systems without X11.

(TODO: maybe move the EGL test out of the X11 tests at some point, too.)
  • Loading branch information
icculus committed Dec 5, 2018
1 parent 1689e9f commit 2878d4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions configure
Expand Up @@ -21775,6 +21775,7 @@ $as_echo_n "checking for EGL support... " >&6; }

#define LINUX
#define EGL_API_FB
#define MESA_EGL_NO_X11_HEADERS
#include <EGL/egl.h>
#include <EGL/eglext.h>

Expand Down
1 change: 1 addition & 0 deletions configure.in
Expand Up @@ -2340,6 +2340,7 @@ CheckOpenGLESX11()
AC_TRY_COMPILE([
#define LINUX
#define EGL_API_FB
#define MESA_EGL_NO_X11_HEADERS
#include <EGL/egl.h>
#include <EGL/eglext.h>
],[
Expand Down
2 changes: 1 addition & 1 deletion src/video/wayland/SDL_waylandvideo.h
Expand Up @@ -33,7 +33,7 @@
!!! FIXME: in Ubuntu 18.04 (and other distros).
*/


#define MESA_EGL_NO_X11_HEADERS
#include <EGL/egl.h>
#include "wayland-util.h"

Expand Down

0 comments on commit 2878d4f

Please sign in to comment.