mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00: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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user