Add the vulkan renderer to the beginning fallback sequence.

The fallback sequence is now: vk -> gl3 -> gl1 -> soft -> failed.
This commit is contained in:
Yamagi 2020-10-03 16:22:46 +02:00
parent 6329a1dfcb
commit a72cd9ea50

View file

@ -457,8 +457,13 @@ VID_CheckChanges(void)
// Mkay, let's try our luck.
while (!VID_LoadRenderer())
{
// We try: gl3 -> gl1 -> soft.
if (strcmp(vid_renderer->string, "gl3") == 0)
// We try: vk -> gl3 -> gl1 -> soft.
if (strcmp(vid_renderer->string, "vk") == 0)
{
Com_Printf("Retrying with gl3...\n");
Cvar_Set("vid_renderer", "gl3");
}
else if (strcmp(vid_renderer->string, "gl3") == 0)
{
Com_Printf("Retrying with gl1...\n");
Cvar_Set("vid_renderer", "gl1");