Force flush when dirty refresh returns true

This commit is contained in:
Billy Laws 2022-09-14 23:12:40 +01:00
parent ec4ea5c5d7
commit 302b2fcc3f

View File

@ -222,7 +222,8 @@ namespace skyline::dirty {
dirty = false; dirty = false;
value.Flush(std::forward<Args>(args)...); value.Flush(std::forward<Args>(args)...);
} else if constexpr (std::is_base_of_v<RefreshableManualDirty, T>) { } else if constexpr (std::is_base_of_v<RefreshableManualDirty, T>) {
value.Refresh(std::forward<Args>(args)...); if (value.Refresh(std::forward<Args>(args)...))
value.Flush(std::forward<Args>(args)...);
} }
} }