From 9ae9e6c069b1fad94f277ffc13de7986f2bb2859 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 4 Jul 2024 08:07:13 +1000 Subject: emu/rendersw.hxx: Don't use class template deduction with large initialiser list that upsets clang. --- src/emu/rendersw.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/emu/rendersw.hxx b/src/emu/rendersw.hxx index faa705adebf..d338dd5efb6 100644 --- a/src/emu/rendersw.hxx +++ b/src/emu/rendersw.hxx @@ -31,7 +31,10 @@ private: // internal helpers template - static auto make_cosine_table(std::integer_sequence) { 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) + { + return std::array{ 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); } -- cgit v1.2.3