mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-29 17:57:11 +02:00
gtk: Fix a NRE when disposing OpenGL (#4648)
This commit is contained in:
parent
f8486fc3f8
commit
8bc1440ce0
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue