aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ryujinx/Ui/GLRenderer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx/Ui/GLRenderer.cs b/Ryujinx/Ui/GLRenderer.cs
index 5804ed18..e3a9804e 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();
}
}
}