Skip to content
Snippets Groups Projects
Commit 2415bad9 authored by Weiyi Wang's avatar Weiyi Wang Committed by GitHub
Browse files

Merge pull request #2868 from wwylele/swr-tuple

SwRasterizer/Lighting: use make_tuple instead of constructor
parents 9f6868ad 5d9d42f0
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,7 @@ std::tuple<Math::Vec4<u8>, Math::Vec4<u8>> ComputeFragmentsColors(
MathUtil::Clamp(specular_sum.z, 0.0f, 1.0f) * 255,
MathUtil::Clamp(specular_sum.w, 0.0f, 1.0f) * 255)
.Cast<u8>();
return {diffuse, specular};
return std::make_tuple(diffuse, specular);
}
} // namespace Pica
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment