Call `QVk_WaitAndShutdownAll()` on context shutdown.
Just calling `QVk_Shutdown()` is wrong. It doesn't wait for Vulkan to finish, which can cause crashes. And it leaks some ressources which makes the GPU driver unhappy.
This commit is contained in:
parent
3cf786e158
commit
1f4082c419
|
@ -1346,7 +1346,7 @@ static qboolean RE_Init( void )
|
||||||
static void RE_ShutdownContext( void )
|
static void RE_ShutdownContext( void )
|
||||||
{
|
{
|
||||||
// Shutdown Vulkan subsystem
|
// Shutdown Vulkan subsystem
|
||||||
QVk_Shutdown();
|
QVk_WaitAndShutdownAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue