summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorSebastian Valle <subv2112@gmail.com>2017-09-27 15:45:38 -0500
committerGitHub <noreply@github.com>2017-09-27 15:45:38 -0500
commit0d42706a7b50f0d2444d56932297480e4a4a3ae6 (patch)
treeac52819463dec69d83a82783e202da8148be3ba7 /src/video_core
parent5620327e0342bd908359805f396748335fba04a2 (diff)
parenta321bce37834c1f3034bd87df14fc71c13e6b84a (diff)
Merge pull request #2907 from Subv/warnings3
Disable unary operator- on Math::Vec2/Vec3/Vec4 for unsigned types.
Diffstat (limited to 'src/video_core')
-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
auto FlipQuaternionIfOpposite = [](auto& a, const auto& b) {
if (Math::Dot(a, b) < float24::Zero())
- a = -a;
+ a = a * float24::FromFloat32(-1.0f);
};
// Flip the quaternions if they are opposite to prevent interpolating them over the wrong