mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 21:10:24 +01:00
remove a if-statement
glMaterial changes the current specular exponent or glLight changes
the intensity distribution of the light, but _mesa_update_state doesn't
update the corresponding light table. So they must be updated at this time.
This commit is contained in:
parent
79d59d0173
commit
d85667950f
1 changed files with 1 additions and 2 deletions
|
|
@ -133,8 +133,7 @@ shade_rastpos(GLcontext *ctx,
|
|||
GLfloat diffuseColor[4], specularColor[4]; /* for RGB mode only */
|
||||
GLfloat diffuseCI = 0.0, specularCI = 0.0; /* for CI mode only */
|
||||
|
||||
if (!ctx->_ShineTable[0] || !ctx->_ShineTable[1])
|
||||
_mesa_validate_all_lighting_tables( ctx );
|
||||
_mesa_validate_all_lighting_tables( ctx );
|
||||
|
||||
COPY_3V(diffuseColor, base[0]);
|
||||
diffuseColor[3] = CLAMP(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue