- fixed logic error with depth bias state in hardware renderer.

This commit is contained in:
Christoph Oelckers 2022-01-17 00:32:54 +01:00
parent 84458ddb9f
commit e6c6471e2f

View file

@ -585,7 +585,7 @@ public:
void SetDepthBias(float a, float b)
{
mBias.mChanged = mBias.mFactor != a || mBias.mUnits != b;
mBias.mChanged |= mBias.mFactor != a || mBias.mUnits != b;
mBias.mFactor = a;
mBias.mUnits = b;
}
@ -597,7 +597,7 @@ public:
void ClearDepthBias()
{
mBias.mChanged = mBias.mFactor != 0 || mBias.mUnits != 0;
mBias.mChanged |= mBias.mFactor != 0 || mBias.mUnits != 0;
mBias.mFactor = 0;
mBias.mUnits = 0;
}