Properly changing video driver name in settings when a core forces one.

This commit is contained in:
Rinnegatamante 2019-10-04 19:45:49 +02:00
parent eed65a64b2
commit b6e6b78843

View File

@ -19035,9 +19035,11 @@ static bool video_driver_find_driver(void)
!string_is_equal(settings->arrays.video_driver, "glcore"))
{
#if defined(HAVE_OPENGL_CORE)
strcpy(settings->arrays.video_driver, "glcore");
current_video = &video_gl_core;
RARCH_LOG("[Video]: Forcing \"glcore\" driver.\n");
#else
strcpy(settings->arrays.video_driver, "gl");
current_video = &video_gl2;
RARCH_LOG("[Video]: Forcing \"gl\" driver.\n");
#endif