SwRasterizer: Flip the vertex quaternions before clipping (if necessary).

This commit is contained in:
Subv 2017-06-11 11:55:35 -05:00 committed by wwylele
parent 2a75837bc3
commit 73566ff7a9
3 changed files with 16 additions and 21 deletions

View file

@ -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);
}