mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-14 00:05:24 +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,
|
||||
};
|
||||
|
||||
#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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user