mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-19 11:45:47 +00:00
maybe don't dispose of the gpu when it doesnt exist
This commit is contained in:
@@ -610,6 +610,12 @@ namespace Ryujinx.Ava.Systems
|
|||||||
|
|
||||||
_isActive = false;
|
_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.
|
// 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.
|
// We only need to wait for all commands submitted during the main gpu loop to be processed, unless the GPU event is cancelled.
|
||||||
|
|
||||||
@@ -617,12 +623,6 @@ namespace Ryujinx.Ava.Systems
|
|||||||
_gpuCancellationTokenSource.Dispose();
|
_gpuCancellationTokenSource.Dispose();
|
||||||
_gpuDoneEvent.Dispose();
|
_gpuDoneEvent.Dispose();
|
||||||
|
|
||||||
DisplaySleep.Restore();
|
|
||||||
|
|
||||||
NpadManager.Dispose();
|
|
||||||
TouchScreenManager.Dispose();
|
|
||||||
Device.Dispose();
|
|
||||||
|
|
||||||
DisposeGpu();
|
DisposeGpu();
|
||||||
AppExit?.Invoke(this, EventArgs.Empty);
|
AppExit?.Invoke(this, EventArgs.Empty);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user