mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-08 03:58:34 +00:00
gtk: Fix a NRE when disposing OpenGL (#4648)
This commit is contained in:
parent
9db73f74cf
commit
a947a45d81
|
@ -119,7 +119,7 @@ namespace Ryujinx.Ui
|
|||
}
|
||||
catch (Exception) { }
|
||||
|
||||
Device.DisposeGpu();
|
||||
Device?.DisposeGpu();
|
||||
NpadManager.Dispose();
|
||||
|
||||
// Unbind context and destroy everything
|
||||
|
@ -129,7 +129,7 @@ namespace Ryujinx.Ui
|
|||
}
|
||||
catch (Exception) { }
|
||||
|
||||
_openGLContext.Dispose();
|
||||
_openGLContext?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue