فهرست منبع

SwRasterizer/Lighting: use make_tuple instead of constructor

implicit tuple constructor is a c++17 thing, which is not supported by some not-so-old libraries. Play safe for now
wwylele 9 سال پیش
والد
کامیت
5d9d42f0d0
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/video_core/swrasterizer/lighting.cpp

+ 1 - 1
src/video_core/swrasterizer/lighting.cpp

@@ -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.z, 0.0f, 1.0f) * 255,
                                          MathUtil::Clamp(specular_sum.w, 0.0f, 1.0f) * 255)
                                          MathUtil::Clamp(specular_sum.w, 0.0f, 1.0f) * 255)
                         .Cast<u8>();
                         .Cast<u8>();
-    return {diffuse, specular};
+    return std::make_tuple(diffuse, specular);
 }
 }
 
 
 } // namespace Pica
 } // namespace Pica