mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Should fix build with outdated EGL headers.
This commit is contained in:
parent
91294d71fe
commit
75077fa553
@ -537,7 +537,7 @@ static bool gfx_ctx_set_video_mode(void *data,
|
|||||||
EGL_NONE,
|
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[] = {
|
static const EGLint egl_attribs_gles3[] = {
|
||||||
EGL_ATTRIBS_BASE,
|
EGL_ATTRIBS_BASE,
|
||||||
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES3_BIT_KHR,
|
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;
|
attrib_ptr = egl_attribs_gl;
|
||||||
break;
|
break;
|
||||||
case GFX_CTX_OPENGL_ES_API:
|
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)
|
if (g_major >= 3)
|
||||||
attrib_ptr = egl_attribs_gles3;
|
attrib_ptr = egl_attribs_gles3;
|
||||||
else
|
else
|
||||||
|
@ -257,7 +257,7 @@ static bool gfx_ctx_init(void *data)
|
|||||||
EGL_NONE,
|
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[] = {
|
static const EGLint egl_attribs_gles3[] = {
|
||||||
EGL_ATTRIBS_BASE,
|
EGL_ATTRIBS_BASE,
|
||||||
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES3_BIT_KHR,
|
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES3_BIT_KHR,
|
||||||
@ -278,7 +278,7 @@ static bool gfx_ctx_init(void *data)
|
|||||||
attrib_ptr = egl_attribs_gl;
|
attrib_ptr = egl_attribs_gl;
|
||||||
break;
|
break;
|
||||||
case GFX_CTX_OPENGL_ES_API:
|
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)
|
if (g_major >= 3)
|
||||||
attrib_ptr = egl_attribs_gles3;
|
attrib_ptr = egl_attribs_gles3;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user