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:
PixelyIon 2022-07-07 00:54:43 +05:30
parent 34e1e39d1c
commit 2366f81443
No known key found for this signature in database
GPG Key ID: 11BC6C3201BC2C05

View File

@ -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;
}