vk: Unbind global renderer if it is destroyed

This commit is contained in:
kd-11 2021-08-04 02:29:38 +03:00 committed by kd-11
parent 6f6eda6413
commit 9a63ed6c50

View file

@ -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)