mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2026-03-11 22:15:34 +00:00
maybe don't dispose of the gpu when it doesnt exist
This commit is contained in:
parent
6938265651
commit
3cc02ebaef
1 changed files with 6 additions and 6 deletions
|
|
@ -610,18 +610,18 @@ namespace Ryujinx.Ava.Systems
|
|||
|
||||
_isActive = false;
|
||||
|
||||
DisplaySleep.Restore();
|
||||
|
||||
NpadManager.Dispose();
|
||||
TouchScreenManager.Dispose();
|
||||
Device.Dispose();
|
||||
|
||||
// NOTE: The render loop is allowed to stay alive until the renderer itself is disposed, as it may handle resource dispose.
|
||||
// We only need to wait for all commands submitted during the main gpu loop to be processed, unless the GPU event is cancelled.
|
||||
|
||||
WaitHandle.WaitAny(new []{_gpuDoneEvent, _gpuCancellationTokenSource.Token.WaitHandle});
|
||||
_gpuCancellationTokenSource.Dispose();
|
||||
_gpuDoneEvent.Dispose();
|
||||
|
||||
DisplaySleep.Restore();
|
||||
|
||||
NpadManager.Dispose();
|
||||
TouchScreenManager.Dispose();
|
||||
Device.Dispose();
|
||||
|
||||
DisposeGpu();
|
||||
AppExit?.Invoke(this, EventArgs.Empty);
|
||||
|
|
|
|||
Loading…
Reference in a new issue