emu/rendersw.hxx: Don't use class template deduction with large initialiser list that upsets clang.

This commit is contained in:
Vas Crabb 2024-07-04 08:07:13 +10:00
parent 5c14cc707b
commit 9ae9e6c069

View File

@ -31,7 +31,10 @@ private:
// internal helpers
template <int... Values>
static auto make_cosine_table(std::integer_sequence<int, Values...>) { return std::array{ u32((1.0 / cos(atan(double(Values) / double(sizeof...(Values) - 1)))) * 0x10000000 + 0.5)... }; }
static auto make_cosine_table(std::integer_sequence<int, Values...>)
{
return std::array<u32, sizeof...(Values)>{ u32((1.0 / cos(atan(double(Values) / double(sizeof...(Values) - 1)))) * 0x10000000 + 0.5)... };
}
static constexpr bool is_opaque(float alpha) { return (alpha >= (NoDestRead ? 0.5f : 1.0f)); }
static constexpr bool is_transparent(float alpha) { return (alpha < (NoDestRead ? 0.5f : 0.0001f)); }
static rgb_t apply_intensity(int intensity, rgb_t color) { return color.scale8(intensity); }