mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-30 00:10:53 +00:00
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:
parent
1f4082c419
commit
a38084c621
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue