diff --git a/src/shader_recompiler/ir_opt/texture_pass.cpp b/src/shader_recompiler/ir_opt/texture_pass.cpp index c26b7411ed..0e427c3571 100644 --- a/src/shader_recompiler/ir_opt/texture_pass.cpp +++ b/src/shader_recompiler/ir_opt/texture_pass.cpp @@ -65,7 +65,7 @@ u32 SaturatingSub(u32 lhs, u32 rhs) { template [[nodiscard]] u32 StaticDescriptorCount(T const& descriptors) noexcept { return std::accumulate(descriptors.cbegin(), descriptors.cend(), 0U, [](auto const& acc, auto const& e) { - return acc + e.count <= 1 ? e.count : 0; + return acc + (e.count <= 1 ? e.count : 0); }); }