libretro: never request a GLES3 context

RA doesn't give us the opportunity to retry if GLES3 isn't supported.
Issue #405
This commit is contained in:
Flyinghead 2021-12-15 21:23:35 +01:00
parent c6fe6b83ac
commit 5a6197cfc6
2 changed files with 0 additions and 13 deletions

View File

@ -2978,15 +2978,7 @@ static bool glsm_state_ctx_init(glsm_ctx_params_t *params)
return false;
#ifdef HAVE_OPENGLES
#if defined(HAVE_OPENGLES_3_1)
hw_render.context_type = RETRO_HW_CONTEXT_OPENGLES_VERSION;
hw_render.version_major = 3;
hw_render.version_minor = 1;
#elif defined(HAVE_OPENGLES3)
hw_render.context_type = RETRO_HW_CONTEXT_OPENGLES3;
#else
hw_render.context_type = RETRO_HW_CONTEXT_OPENGLES2;
#endif
#else
hw_render.context_type = RETRO_HW_CONTEXT_OPENGL;
if (params->context_type != RETRO_HW_CONTEXT_NONE)

View File

@ -1450,11 +1450,6 @@ static bool set_opengl_hw_render(u32 preferred)
params.context_reset = context_reset;
params.context_destroy = context_destroy;
params.environ_cb = environ_cb;
#ifdef TARGET_NO_STENCIL
params.stencil = false;
#else
params.stencil = true;
#endif
params.imm_vbo_draw = NULL;
params.imm_vbo_disable = NULL;
#if defined(__APPLE__) && defined(HAVE_OPENGL)