mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 08:00:25 +01:00
mesa: minor clean-ups, remove unneeded conditional
This commit is contained in:
parent
b46611633c
commit
2a50dde0f5
1 changed files with 5 additions and 5 deletions
|
|
@ -468,9 +468,8 @@ update_texture_state( GLcontext *ctx )
|
|||
}
|
||||
}
|
||||
|
||||
ctx->NewState |= _NEW_TEXTURE; /* TODO: only set this if there are
|
||||
* actual changes.
|
||||
*/
|
||||
/* TODO: only set this if there are actual changes */
|
||||
ctx->NewState |= _NEW_TEXTURE;
|
||||
|
||||
ctx->Texture._EnabledUnits = 0;
|
||||
ctx->Texture._GenFlags = 0;
|
||||
|
|
@ -540,8 +539,9 @@ update_texture_state( GLcontext *ctx )
|
|||
continue;
|
||||
}
|
||||
|
||||
if (texUnit->_ReallyEnabled)
|
||||
ctx->Texture._EnabledUnits |= (1 << unit);
|
||||
/* if we get here, we know this texture unit is enabled */
|
||||
|
||||
ctx->Texture._EnabledUnits |= (1 << unit);
|
||||
|
||||
if (texUnit->EnvMode == GL_COMBINE ||
|
||||
texUnit->EnvMode == GL_COMBINE4_NV) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue