mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-21 03:11:57 +00:00
'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:
parent
ffddd0f7c9
commit
496985eb90
1 changed files with 4 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue