Simplify should_wait
All checks were successful
eden-license / license-header (pull_request) Successful in 14s
All checks were successful
eden-license / license-header (pull_request) Successful in 14s
This commit is contained in:
parent
e85288aebc
commit
b6f7011c80
1 changed files with 1 additions and 2 deletions
|
@ -176,14 +176,13 @@ private:
|
|||
while (!fences.empty()) {
|
||||
TFence& current_fence = fences.front();
|
||||
|
||||
const bool should_wait = ShouldWait() && !IsFenceSignaled(current_fence);
|
||||
#ifdef __ANDROID__
|
||||
const bool allow_early_release = Settings::values.early_release_fences.GetValue();
|
||||
#else
|
||||
const bool allow_early_release = false;
|
||||
#endif
|
||||
|
||||
if (should_wait) {
|
||||
if (ShouldWait() && !IsFenceSignaled(current_fence)) {
|
||||
if constexpr (force_wait) {
|
||||
WaitFence(current_fence);
|
||||
} else if (!allow_early_release) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue