diff --git a/src/Ryujinx.Graphics.OpenGL/Queries/CounterQueueEvent.cs b/src/Ryujinx.Graphics.OpenGL/Queries/CounterQueueEvent.cs index 9e8919adc..25e0588ae 100644 --- a/src/Ryujinx.Graphics.OpenGL/Queries/CounterQueueEvent.cs +++ b/src/Ryujinx.Graphics.OpenGL/Queries/CounterQueueEvent.cs @@ -115,13 +115,7 @@ namespace Ryujinx.Graphics.OpenGL.Queries public bool ReserveForHostAccess() { - if (_hostAccessReserved > 0) - { - Interlocked.Increment(ref _hostAccessReserved); - return true; - } - - if (IsValueAvailable()) + if (_hostAccessReserved == 0 && IsValueAvailable()) { return false; } diff --git a/src/Ryujinx.Graphics.Vulkan/Queries/CounterQueueEvent.cs b/src/Ryujinx.Graphics.Vulkan/Queries/CounterQueueEvent.cs index e30bb3ecc..986a08e35 100644 --- a/src/Ryujinx.Graphics.Vulkan/Queries/CounterQueueEvent.cs +++ b/src/Ryujinx.Graphics.Vulkan/Queries/CounterQueueEvent.cs @@ -121,13 +121,7 @@ namespace Ryujinx.Graphics.Vulkan.Queries public bool ReserveForHostAccess() { - if (_hostAccessReserved > 0) - { - Interlocked.Increment(ref _hostAccessReserved); - return true; - } - - if (IsValueAvailable()) + if (_hostAccessReserved == 0 && IsValueAvailable()) { return false; }