'Unknown renderer' as upper entry point to the fallback magic.

This is next to no functional change, the only difference to before is,
that the Vulkan renderer is treated as an unknown renderer. gl3 is the
first regular fallback.
This commit is contained in:
Yamagi 2021-05-25 11:34:13 +02:00
parent ffddd0f7c9
commit 496985eb90

View file

@ -517,8 +517,10 @@ VID_CheckChanges(void)
// Mkay, let's try our luck.
while (!VID_LoadRenderer())
{
// We try: vk -> gl3 -> gl1 -> soft.
if (strcmp(vid_renderer->string, "vk") == 0)
// We try: custom -> gl3 -> gl1 -> soft.
if ((strcmp(vid_renderer->string, "gl3") != 0) &&
(strcmp(vid_renderer->string, "gl1") != 0) &&
(strcmp(vid_renderer->string, "soft") != 0))
{
Com_Printf("Retrying with gl3...\n");
Cvar_Set("vid_renderer", "gl3");
@ -538,12 +540,6 @@ VID_CheckChanges(void)
// Sorry, no usable renderer found.
Com_Error(ERR_FATAL, "No usable renderer found!\n");
}
else
{
// User forced something stupid.
Com_Printf("Retrying with gl3...\n");
Cvar_Set("vid_renderer", "gl3");
}
}
// Unblock the client.