mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-20 18:52:43 +00:00
- proper maintenance of the depth bias state.
Change state must be combined, not overwritten, or it may miss some needed state changes.
This commit is contained in:
parent
fcf04a7df1
commit
049fc5fb7c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue