mirror of
https://github.com/libretro/RetroArch
synced 2025-03-04 16:13:50 +00:00
compatibility with targets lacking glcore
This commit is contained in:
parent
1ed6bfb31f
commit
5bb90ecf46
15
retroarch.c
15
retroarch.c
@ -18912,6 +18912,14 @@ static bool dynamic_verify_hw_context(
|
||||
if (!string_is_equal(video_ident, "vulkan"))
|
||||
return false;
|
||||
break;
|
||||
#if defined(HAVE_OPENGL_CORE)
|
||||
case RETRO_HW_CONTEXT_OPENGL_CORE:
|
||||
if (!string_is_equal(video_ident, "glcore"))
|
||||
return false;
|
||||
break;
|
||||
#else
|
||||
case RETRO_HW_CONTEXT_OPENGL_CORE:
|
||||
#endif
|
||||
case RETRO_HW_CONTEXT_OPENGLES2:
|
||||
case RETRO_HW_CONTEXT_OPENGLES3:
|
||||
case RETRO_HW_CONTEXT_OPENGLES_VERSION:
|
||||
@ -18919,10 +18927,6 @@ static bool dynamic_verify_hw_context(
|
||||
if (!string_is_equal(video_ident, "gl"))
|
||||
return false;
|
||||
break;
|
||||
case RETRO_HW_CONTEXT_OPENGL_CORE:
|
||||
if (!string_is_equal(video_ident, "glcore"))
|
||||
return false;
|
||||
break;
|
||||
case RETRO_HW_CONTEXT_DIRECT3D:
|
||||
if (!(string_is_equal(video_ident, "d3d11") && major == 11))
|
||||
return false;
|
||||
@ -31611,6 +31615,9 @@ static bool hw_render_context_is_gl(enum retro_hw_context_type type)
|
||||
switch (type)
|
||||
{
|
||||
case RETRO_HW_CONTEXT_OPENGL:
|
||||
#ifndef HAVE_OPENGL_CORE
|
||||
case RETRO_HW_CONTEXT_OPENGL_CORE:
|
||||
#endif
|
||||
case RETRO_HW_CONTEXT_OPENGLES2:
|
||||
case RETRO_HW_CONTEXT_OPENGLES3:
|
||||
case RETRO_HW_CONTEXT_OPENGLES_VERSION:
|
||||
|
Loading…
x
Reference in New Issue
Block a user