mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-26 18:43:04 +00:00
Fix host access reservation for real
This commit is contained in:
parent
0aa6b31b39
commit
711360f775
2 changed files with 2 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue