Default to gl instead of vulkan.

If the video_driver is set incorrectly it will default to vulkan
instead of gl. However its possible to have RetroArch built with
vulkan even with no working vulkan drivers and this will cause a
segfault.

Defaulting to gl again should be a safer default which should crash
for fewer users.

Fixes https://github.com/libretro/RetroArch/issues/5568.
This commit is contained in:
orbea 2018-08-24 13:50:32 -07:00
parent b095511e97
commit d8ea30881d

View File

@ -262,12 +262,12 @@ struct aspect_ratio_elem aspectratio_lut[ASPECT_RATIO_END] = {
};
static const video_driver_t *video_drivers[] = {
#ifdef HAVE_VULKAN
&video_vulkan,
#endif
#ifdef HAVE_OPENGL
&video_gl,
#endif
#ifdef HAVE_VULKAN
&video_vulkan,
#endif
#ifdef HAVE_METAL
&video_metal,
#endif