Mesa (master): mesa: Avoid revalidating shine tables in _tnl_RasterPos.

Mathias Fröhlich frohlich at kemper.freedesktop.org
Wed Feb 29 19:42:11 UTC 2012


Module: Mesa
Branch: master
Commit: 7793a63d3d3a0cf403b7f51dd3a72e4c37ebfb16
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7793a63d3d3a0cf403b7f51dd3a72e4c37ebfb16

Author: Mathias Fröhlich <Mathias.Froehlich at gmx.net>
Date:   Wed Feb 29 18:19:34 2012 +0100

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 <alexdeucher at gmail.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Signed-off-by: Mathias Froehlich <Mathias.Froehlich at web.de>

---

 src/mesa/tnl/t_rasterpos.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/mesa/tnl/t_rasterpos.c b/src/mesa/tnl/t_rasterpos.c
index 38f63b2..50b5fcb 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 );




More information about the mesa-commit mailing list