mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-28 10:00:50 +01:00
android-fence: call callback when fence is invalid (#1881)
This commit is contained in:
parent
36c6e67df2
commit
996e6905ba
@ -70,8 +70,15 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
|
||||
{
|
||||
ref NvFence fence = ref NvFences[FenceCount - 1];
|
||||
|
||||
if (fence.IsValid())
|
||||
{
|
||||
gpuContext.Synchronization.RegisterCallbackOnSyncpoint(fence.Id, fence.Value, callback);
|
||||
}
|
||||
else
|
||||
{
|
||||
callback();
|
||||
}
|
||||
}
|
||||
|
||||
public uint GetFlattenedSize()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user