mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 04:55:09 +01:00
Fix Buffer::PollFence
incorrectly handling null-FenceCycle
If a `FenceCycle` isn't attached then `PollFence` returned `false` while it should return if the buffer has any concurrent GPU usages in flight, this has now been fixed by returning `true` in those cases.
This commit is contained in:
parent
34e1e39d1c
commit
2366f81443
@ -130,10 +130,14 @@ namespace skyline::gpu {
|
||||
}
|
||||
|
||||
bool Buffer::PollFence() {
|
||||
if (cycle && cycle->Poll()) {
|
||||
if (!cycle)
|
||||
return true;
|
||||
|
||||
if (cycle->Poll()) {
|
||||
cycle = nullptr;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user