aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-06-11 11:55:35 -0500
committerwwylele <wwylele@gmail.com>2017-07-11 19:39:15 +0300
commit1dcd48ba2ad00c389302854ad2aecb4f2b2f76e9 (patch)
treeba42cbed66eeb4cd08012181f774a8633b9c2120 /src/common
parent97723538d860cf466aab8b5454063475f103cf05 (diff)
SwRasterizer: Flip the vertex quaternions before clipping (if necessary).
Diffstat (limited to 'src/common')
-rw-r--r--src/common/vector_math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/vector_math.h b/src/common/vector_math.h
index c7a461a1ef..d0fe0e4057 100644
--- a/src/common/vector_math.h
+++ b/src/common/vector_math.h
@@ -462,7 +462,7 @@ public:
z -= other.z;
w -= other.w;
}
- template <typename Q = T, class = typename std::enable_if<std::is_signed<Q>::value>::type>
+ template <typename Q = T>
Vec4<decltype(-T{})> operator-() const {
return MakeVec(-x, -y, -z, -w);
}