From 41b50eeac3939b7eb6ce23f2c27134aa3af71e32 Mon Sep 17 00:00:00 2001 From: Lynix Date: Wed, 3 Jun 2020 19:09:51 +0200 Subject: [PATCH] Fix compilation --- src/ShaderNode/DataModels/Cast.inl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ShaderNode/DataModels/Cast.inl b/src/ShaderNode/DataModels/Cast.inl index 64ed934a2..f8870201a 100644 --- a/src/ShaderNode/DataModels/Cast.inl +++ b/src/ShaderNode/DataModels/Cast.inl @@ -10,7 +10,8 @@ ShaderNode(graph) { static_assert(ToComponentCount <= s_vectorComponents.size()); - m_overflowComponents.fill(0.f); + for (std::size_t i = 0; i < ToComponentCount; ++i) + m_overflowComponents[i] = 0.f; m_output = std::make_shared(ToComponentCount); }