mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-28 03:23:05 +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()
|
public bool ReserveForHostAccess()
|
||||||
{
|
{
|
||||||
if (_hostAccessReserved > 0)
|
if (_hostAccessReserved == 0 && IsValueAvailable())
|
||||||
{
|
|
||||||
Interlocked.Increment(ref _hostAccessReserved);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (IsValueAvailable())
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,13 +121,7 @@ namespace Ryujinx.Graphics.Vulkan.Queries
|
||||||
|
|
||||||
public bool ReserveForHostAccess()
|
public bool ReserveForHostAccess()
|
||||||
{
|
{
|
||||||
if (_hostAccessReserved > 0)
|
if (_hostAccessReserved == 0 && IsValueAvailable())
|
||||||
{
|
|
||||||
Interlocked.Increment(ref _hostAccessReserved);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (IsValueAvailable())
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue