summaryrefslogtreecommitdiff
path: root/src/video_core/swrasterizer/clipper.cpp
diff options
context:
space:
mode:
authorGravatar Subv2017-08-29 12:59:54 -0500
committerGravatar Subv2017-09-27 09:06:41 -0500
commita321bce37834c1f3034bd87df14fc71c13e6b84a (patch)
tree885e6e280f4943a132e404808299743e4e226503 /src/video_core/swrasterizer/clipper.cpp
parentMerge pull request #2952 from MerryMage/page-tables (diff)
downloadyuzu-a321bce37834c1f3034bd87df14fc71c13e6b84a.tar.gz
yuzu-a321bce37834c1f3034bd87df14fc71c13e6b84a.tar.xz
yuzu-a321bce37834c1f3034bd87df14fc71c13e6b84a.zip
Disable unary operator- on Math::Vec2/Vec3/Vec4 for unsigned types.
It is unlikely we will ever use this without first doing a Cast to a signed type. Fixes 9 "unary minus operator applied to unsigned type, result still unsigned" warnings on MSVC2017.3
Diffstat (limited to 'src/video_core/swrasterizer/clipper.cpp')
-rw-r--r--src/video_core/swrasterizer/clipper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/swrasterizer/clipper.cpp b/src/video_core/swrasterizer/clipper.cpp
index a52129eb7..c1ed48398 100644
--- a/src/video_core/swrasterizer/clipper.cpp
+++ b/src/video_core/swrasterizer/clipper.cpp
@@ -98,7 +98,7 @@ void ProcessTriangle(const OutputVertex& v0, const OutputVertex& v1, const Outpu
98 98
99 auto FlipQuaternionIfOpposite = [](auto& a, const auto& b) { 99 auto FlipQuaternionIfOpposite = [](auto& a, const auto& b) {
100 if (Math::Dot(a, b) < float24::Zero()) 100 if (Math::Dot(a, b) < float24::Zero())
101 a = -a; 101 a = a * float24::FromFloat32(-1.0f);
102 }; 102 };
103 103
104 // Flip the quaternions if they are opposite to prevent interpolating them over the wrong 104 // Flip the quaternions if they are opposite to prevent interpolating them over the wrong