vk: Unbind global renderer if it is destroyed
This commit is contained in:
@@ -469,6 +469,11 @@ namespace vk
|
|||||||
|
|
||||||
void render_device::destroy()
|
void render_device::destroy()
|
||||||
{
|
{
|
||||||
|
if (g_render_device == this)
|
||||||
|
{
|
||||||
|
g_render_device = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
if (dev && pgpu)
|
if (dev && pgpu)
|
||||||
{
|
{
|
||||||
if (m_allocator)
|
if (m_allocator)
|
||||||
|
|||||||
Reference in New Issue
Block a user