Fix wrong sse version of setUnlessOOG()

This commit is contained in:
heckflosse
2019-01-16 14:44:08 +01:00
parent 2369440390
commit 23202d1f10

View File

@@ -68,11 +68,9 @@ inline vmask OOG(const vfloat val)
inline void setUnlessOOG(vfloat &r, vfloat &g, vfloat &b, const vfloat rr, const vfloat gg, const vfloat bb)
{
vmask cond = vandm(vandm(OOG(r), OOG(g)), OOG(b));
if (!_mm_movemask_ps((vfloat)cond)) {
r = rr;
g = gg;
b = bb;
}
r = vself(cond, r, rr);
g = vself(cond, g, gg);
b = vself(cond, b, bb);
}
#endif