mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
Try to use menu GL driver when SDL GL is selected as context driver
This commit is contained in:
parent
ff15d708f6
commit
8d7290b300
@ -166,6 +166,7 @@ static const char *menu_video_get_ident(void)
|
||||
static bool menu_display_check_compatibility(enum menu_display_driver_type type)
|
||||
{
|
||||
const char *video_driver = menu_video_get_ident();
|
||||
const char *ctx_driver = gfx_ctx_get_ident();
|
||||
|
||||
switch (type)
|
||||
{
|
||||
@ -174,6 +175,8 @@ static bool menu_display_check_compatibility(enum menu_display_driver_type type)
|
||||
case MENU_VIDEO_DRIVER_OPENGL:
|
||||
if (string_is_equal(video_driver, "gl"))
|
||||
return true;
|
||||
if (!string_is_empty(ctx_driver) && string_is_equal(video_driver, "sdl_gl"))
|
||||
return true;
|
||||
break;
|
||||
case MENU_VIDEO_DRIVER_DIRECT3D:
|
||||
if (string_is_equal(video_driver, "d3d"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user