mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-05 08:10:10 +01:00
vk: Unbind global renderer if it is destroyed
This commit is contained in:
parent
6f6eda6413
commit
9a63ed6c50
|
|
@ -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…
Reference in a new issue