1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-24 00:39:54 +00:00

Make find_video_driver more robust in case of failure

This commit is contained in:
Twinaphex 2014-07-17 03:03:05 +02:00
parent 2ae6409b57
commit a990d7e319

@ -291,8 +291,12 @@ static void find_video_driver(void)
RARCH_LOG_OUTPUT("Available video drivers are:\n");
for (d = 0; video_drivers[d]; d++)
RARCH_LOG_OUTPUT("\t%s\n", video_drivers[d]->ident);
RARCH_WARN("Going to default to first video driver...\n");
rarch_fail(1, "find_video_driver()");
driver.video = video_drivers[0];
if (!driver.video)
rarch_fail(1, "find_video_driver()");
}
}