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:
parent
c6fe6b83ac
commit
5a6197cfc6
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue