Merge pull request #4833 from kbrenneman/platform-enums

Define the platform enums if they aren't in eglext.h.
This commit is contained in:
Twinaphex 2017-04-19 16:13:07 +02:00 committed by GitHub
commit 8eed4c38cf
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