Define the platform enums if they aren't in eglext.h.

Add #defines for EGL_PLATFORM_X11_KHR, EGL_PLATFORM_WAYLAND_KHR, and
EGL_PLATFORM_GBM_KHR, if they aren't already defiend in eglext.h.
This commit is contained in:
Kyle Brenneman 2017-04-19 07:08:05 -06:00
parent 27a6d68af9
commit a4d19e174a
3 changed files with 12 additions and 0 deletions

View File

@ -60,6 +60,10 @@
#endif
#ifndef EGL_PLATFORM_GBM_KHR
#define EGL_PLATFORM_GBM_KHR 0x31D7
#endif
static enum gfx_ctx_api drm_api = GFX_CTX_NONE;
static struct gbm_bo *g_bo = NULL;

View File

@ -113,6 +113,10 @@ static enum gfx_ctx_api wl_api = GFX_CTX_NONE;
#define EGL_OPENGL_ES3_BIT_KHR 0x0040
#endif
#ifndef EGL_PLATFORM_WAYLAND_KHR
#define EGL_PLATFORM_WAYLAND_KHR 0x31D8
#endif
#ifdef HAVE_XKBCOMMON
/* FIXME: Move this into a header? */
int init_xkb(int fd, size_t size);

View File

@ -34,6 +34,10 @@
#define EGL_OPENGL_ES3_BIT_KHR 0x0040
#endif
#ifndef EGL_PLATFORM_X11_KHR
#define EGL_PLATFORM_X11_KHR 0x31D5
#endif
typedef struct
{
#ifdef HAVE_EGL