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()) {
|
while (!fences.empty()) {
|
||||||
TFence& current_fence = fences.front();
|
TFence& current_fence = fences.front();
|
||||||
|
|
||||||
const bool should_wait = ShouldWait() && !IsFenceSignaled(current_fence);
|
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
const bool allow_early_release = Settings::values.early_release_fences.GetValue();
|
const bool allow_early_release = Settings::values.early_release_fences.GetValue();
|
||||||
#else
|
#else
|
||||||
const bool allow_early_release = false;
|
const bool allow_early_release = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (should_wait) {
|
if (ShouldWait() && !IsFenceSignaled(current_fence)) {
|
||||||
if constexpr (force_wait) {
|
if constexpr (force_wait) {
|
||||||
WaitFence(current_fence);
|
WaitFence(current_fence);
|
||||||
} else if (!allow_early_release) {
|
} else if (!allow_early_release) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue