summaryrefslogtreecommitdiffstats
path: root/src/video_core/swrasterizer
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-08-29 19:59:54 +0200
committerSubv <subv2112@gmail.com>2017-09-27 16:06:41 +0200
commita321bce37834c1f3034bd87df14fc71c13e6b84a (patch)
tree885e6e280f4943a132e404808299743e4e226503 /src/video_core/swrasterizer
parentMerge pull request #2952 from MerryMage/page-tables (diff)
downloadyuzu-a321bce37834c1f3034bd87df14fc71c13e6b84a.tar
yuzu-a321bce37834c1f3034bd87df14fc71c13e6b84a.tar.gz
yuzu-a321bce37834c1f3034bd87df14fc71c13e6b84a.tar.bz2
yuzu-a321bce37834c1f3034bd87df14fc71c13e6b84a.tar.lz
yuzu-a321bce37834c1f3034bd87df14fc71c13e6b84a.tar.xz
yuzu-a321bce37834c1f3034bd87df14fc71c13e6b84a.tar.zst
yuzu-a321bce37834c1f3034bd87df14fc71c13e6b84a.zip
Diffstat (limited to 'src/video_core/swrasterizer')
-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