mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
vk: Unbind global renderer if it is destroyed
This commit is contained in:
parent
6f6eda6413
commit
9a63ed6c50
1 changed files with 5 additions and 0 deletions
|
@ -469,6 +469,11 @@ namespace vk
|
|||
|
||||
void render_device::destroy()
|
||||
{
|
||||
if (g_render_device == this)
|
||||
{
|
||||
g_render_device = nullptr;
|
||||
}
|
||||
|
||||
if (dev && pgpu)
|
||||
{
|
||||
if (m_allocator)
|
||||
|
|
Loading…
Add table
Reference in a new issue