mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
GLES: Fix bias state
This commit is contained in:
parent
5300abb76d
commit
9e9bb66e9a
1 changed files with 9 additions and 11 deletions
|
@ -390,8 +390,7 @@ void FGLRenderState::ApplyState()
|
||||||
mMaterial.mChanged = false;
|
mMaterial.mChanged = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mBias.mChanged)
|
|
||||||
{
|
|
||||||
if (mBias.mFactor == 0 && mBias.mUnits == 0)
|
if (mBias.mFactor == 0 && mBias.mUnits == 0)
|
||||||
{
|
{
|
||||||
glDisable(GL_POLYGON_OFFSET_FILL);
|
glDisable(GL_POLYGON_OFFSET_FILL);
|
||||||
|
@ -403,7 +402,6 @@ void FGLRenderState::ApplyState()
|
||||||
glPolygonOffset(mBias.mFactor, mBias.mUnits);
|
glPolygonOffset(mBias.mFactor, mBias.mUnits);
|
||||||
mBias.mChanged = false;
|
mBias.mChanged = false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void FGLRenderState::ApplyBuffers()
|
void FGLRenderState::ApplyBuffers()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue