mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-30 12:44:16 +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() {
|
bool Buffer::PollFence() {
|
||||||
if (cycle && cycle->Poll()) {
|
if (!cycle)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
if (cycle->Poll()) {
|
||||||
cycle = nullptr;
|
cycle = nullptr;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user