0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-23 03:25:46 +00:00

gtk: Fix a NRE when disposing OpenGL (#4648)

This commit is contained in:
TSRBerry 2023-04-10 17:00:23 +02:00 committed by GitHub
parent 9db73f74cf
commit a947a45d81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ namespace Ryujinx.Ui
} }
catch (Exception) { } catch (Exception) { }
Device.DisposeGpu(); Device?.DisposeGpu();
NpadManager.Dispose(); NpadManager.Dispose();
// Unbind context and destroy everything // Unbind context and destroy everything
@ -129,7 +129,7 @@ namespace Ryujinx.Ui
} }
catch (Exception) { } catch (Exception) { }
_openGLContext.Dispose(); _openGLContext?.Dispose();
} }
} }
} }