mesa: Avoid revalidating shine tables in _tnl_RasterPos.
authorMathias Fröhlich <Mathias.Froehlich@gmx.net>
Wed, 29 Feb 2012 17:19:34 +0000 (18:19 +0100)
committerMathias Fröhlich <Mathias.Froehlich@gmx.net>
Wed, 29 Feb 2012 19:37:20 +0000 (20:37 +0100)
Now that _tnl_RasterPos no longer uses the shine tables, avoid
revalidating them.

Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
src/mesa/tnl/t_rasterpos.c

index 38f63b23af1744f367937b0666c0767d88fcabbc..50b5fcb4c638b7f384ac0f3ab46f987f8b2eaef9 100644 (file)
@@ -123,8 +123,6 @@ shade_rastpos(struct gl_context *ctx,
    const struct gl_light *light;
    GLfloat diffuseColor[4], specularColor[4];  /* for RGB mode only */
 
-   _mesa_validate_all_lighting_tables( ctx );
-
    COPY_3V(diffuseColor, base[0]);
    diffuseColor[3] = CLAMP( 
       ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_DIFFUSE][3], 0.0F, 1.0F );