diff --git a/src/sksl/ir/SkSLConstructor.cpp b/src/sksl/ir/SkSLConstructor.cpp index c22429a605..55864f0d14 100644 --- a/src/sksl/ir/SkSLConstructor.cpp +++ b/src/sksl/ir/SkSLConstructor.cpp @@ -26,7 +26,7 @@ std::unique_ptr Constructor::Make(const Context& context, return std::move(args[0]); } if (type.isScalar()) { - return MakeScalarConstructor(context, offset, type, std::move(args)); + return MakeScalarConstructor(context, offset, type.scalarTypeForLiteral(), std::move(args)); } if (type.isVector() || type.isMatrix()) { return MakeCompoundConstructor(context, offset, type, std::move(args));