Should fix build with outdated EGL headers.

This commit is contained in:
Themaister 2014-04-30 09:27:49 +02:00
parent 91294d71fe
commit 75077fa553
2 changed files with 4 additions and 4 deletions

View File

@ -537,7 +537,7 @@ static bool gfx_ctx_set_video_mode(void *data,
EGL_NONE,
};
#ifdef EGL_KHR_create_context
#if defined(EGL_KHR_create_context) && defined(EGL_OPENGL_ES3_BIT_KHR)
static const EGLint egl_attribs_gles3[] = {
EGL_ATTRIBS_BASE,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES3_BIT_KHR,
@ -558,7 +558,7 @@ static bool gfx_ctx_set_video_mode(void *data,
attrib_ptr = egl_attribs_gl;
break;
case GFX_CTX_OPENGL_ES_API:
#ifdef EGL_KHR_create_context
#if defined(EGL_KHR_create_context) && defined(EGL_OPENGL_ES3_BIT_KHR)
if (g_major >= 3)
attrib_ptr = egl_attribs_gles3;
else

View File

@ -257,7 +257,7 @@ static bool gfx_ctx_init(void *data)
EGL_NONE,
};
#ifdef EGL_KHR_create_context
#if defined(EGL_KHR_create_context) && defined(EGL_OPENGL_ES3_BIT_KHR)
static const EGLint egl_attribs_gles3[] = {
EGL_ATTRIBS_BASE,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES3_BIT_KHR,
@ -278,7 +278,7 @@ static bool gfx_ctx_init(void *data)
attrib_ptr = egl_attribs_gl;
break;
case GFX_CTX_OPENGL_ES_API:
#ifdef EGL_KHR_create_context
#if defined(EGL_KHR_create_context) && defined(EGL_OPENGL_ES3_BIT_KHR)
if (g_major >= 3)
attrib_ptr = egl_attribs_gles3;
else