Check if the Device is rendering before waiting on it

Fixes an issue where there were missed references and an ``OperationCancelled`` exception when exiting an application.
This commit is contained in:
Max
2026-05-16 23:11:55 -05:00
committed by KeatonTheBot
parent 9a4bf8f94d
commit 94cfe6930c
2 changed files with 40 additions and 38 deletions
+1 -3
View File
@@ -176,9 +176,7 @@ namespace Ryujinx.Graphics.Vulkan
}
}
}
// This can somehow become -1.
// Logger.Info?.PrintMsg(LogClass.Gpu, $"_referenceCount: {_referenceCount}");
Debug.Assert(_referenceCount >= 0);
}