Skip to content

Commit

Permalink
gtk: Fix a NRE when disposing OpenGL (Ryujinx#4648)
Browse files Browse the repository at this point in the history
  • Loading branch information
TSRBerry committed Apr 10, 2023
1 parent 9db73f7 commit a947a45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Ryujinx/Ui/GLRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected override void Dispose(bool disposing)
}
catch (Exception) { }

Device.DisposeGpu();
Device?.DisposeGpu();
NpadManager.Dispose();

// Unbind context and destroy everything
Expand All @@ -129,7 +129,7 @@ protected override void Dispose(bool disposing)
}
catch (Exception) { }

_openGLContext.Dispose();
_openGLContext?.Dispose();
}
}
}

0 comments on commit a947a45

Please sign in to comment.