diff --git a/Ryujinx/Ui/GLRenderer.cs b/Ryujinx/Ui/GLRenderer.cs index 5804ed1818..e3a9804ea7 100644 --- a/Ryujinx/Ui/GLRenderer.cs +++ b/Ryujinx/Ui/GLRenderer.cs @@ -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(); } } }