Fix assertion during engine shutdown after crash during rendering
This commit is contained in:
@@ -49,6 +49,9 @@ GraphicsService GraphicsServiceInstance;
|
||||
|
||||
void Graphics::DisposeDevice()
|
||||
{
|
||||
// Clean any danging pointer to last task (might stay if engine is disposing after crash)
|
||||
GPUDevice::Instance->CurrentTask = nullptr;
|
||||
|
||||
if (GPUDevice::Instance)
|
||||
{
|
||||
GPUDevice::Instance->Dispose();
|
||||
|
||||
Reference in New Issue
Block a user