Simplify should_wait
All checks were successful
eden-license / license-header (pull_request) Successful in 14s

This commit is contained in:
Gamer64 2025-08-02 17:22:16 +02:00
parent e85288aebc
commit b6f7011c80

View file

@ -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) {