Compare commits

..

1 Commits

Author SHA1 Message Date
TSRBerry
a947a45d81 gtk: Fix a NRE when disposing OpenGL (#4648) 2023-04-10 17:00:23 +02:00

View File

@@ -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();
}
}
}