diff options
| author | 2017-09-27 15:45:38 -0500 | |
|---|---|---|
| committer | 2017-09-27 15:45:38 -0500 | |
| commit | 0d42706a7b50f0d2444d56932297480e4a4a3ae6 (patch) | |
| tree | ac52819463dec69d83a82783e202da8148be3ba7 /src/video_core/swrasterizer/clipper.cpp | |
| parent | Merge pull request #2954 from Subv/cache_unmapped_mem (diff) | |
| parent | Disable unary operator- on Math::Vec2/Vec3/Vec4 for unsigned types. (diff) | |
| download | yuzu-0d42706a7b50f0d2444d56932297480e4a4a3ae6.tar.gz yuzu-0d42706a7b50f0d2444d56932297480e4a4a3ae6.tar.xz yuzu-0d42706a7b50f0d2444d56932297480e4a4a3ae6.zip | |
Merge pull request #2907 from Subv/warnings3
Disable unary operator- on Math::Vec2/Vec3/Vec4 for unsigned types.
Diffstat (limited to 'src/video_core/swrasterizer/clipper.cpp')
| -rw-r--r-- | src/video_core/swrasterizer/clipper.cpp | 2 |
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 |