diff options
author | TSRBerry <20988865+TSRBerry@users.noreply.github.com> | 2023-04-10 17:00:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 17:00:23 +0200 |
commit | a947a45d8135bd0b6b1039904f48d92c0d455f3d (patch) | |
tree | 02403615767f0f9a269111c23f1c00a857f23899 | |
parent | 9db73f74cf77484c4d8b34af54c563c68cabb41e (diff) |
gtk: Fix a NRE when disposing OpenGL (#4648)1.1.702
-rw-r--r-- | Ryujinx/Ui/GLRenderer.cs | 4 |
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(); } } } |