From: Mathias Fröhlich Date: Wed, 29 Feb 2012 17:19:34 +0000 (+0100) Subject: mesa: Avoid revalidating shine tables in _tnl_RasterPos. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7793a63d3d3a0cf403b7f51dd3a72e4c37ebfb16;p=mesa.git mesa: Avoid revalidating shine tables in _tnl_RasterPos. Now that _tnl_RasterPos no longer uses the shine tables, avoid revalidating them. Reviewed-by: Alex Deucher Reviewed-by: Brian Paul Signed-off-by: Mathias Froehlich --- diff --git a/src/mesa/tnl/t_rasterpos.c b/src/mesa/tnl/t_rasterpos.c index 38f63b23af1..50b5fcb4c63 100644 --- a/src/mesa/tnl/t_rasterpos.c +++ b/src/mesa/tnl/t_rasterpos.c @@ -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 );