Move QVk_Postinit() from render init to context init.

This is more in line with the rest of the code. Reinitializing the
internal state when building a new context is saver than relying on
Vulkan telling us that something is wrong an reacting to that.
This commit is contained in:
Yamagi 2021-04-23 11:26:56 +02:00
parent 1f4082c419
commit a38084c621

View file

@ -1329,8 +1329,6 @@ static qboolean RE_Init( void )
// print device information during startup // print device information during startup
Vk_Strings_f(); Vk_Strings_f();
QVk_PostInit();
R_Printf(PRINT_ALL, "Successfully initialized Vulkan!\n"); R_Printf(PRINT_ALL, "Successfully initialized Vulkan!\n");
return true; return true;
@ -1594,6 +1592,8 @@ RE_InitContext(void *win)
return false; return false;
} }
QVk_PostInit();
return true; return true;
} }