diff options
author | Brian Paul <[email protected]> | 2012-02-08 20:11:58 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-02-10 08:06:57 -0700 |
commit | d1b79672425115b0f6f9fc3aadcf3800f5f3a7dc (patch) | |
tree | 9646a317c529f581ed2454a88553f0f65463301d /src | |
parent | ae509f88a54b9cc32f16099109330f2792593c83 (diff) |
mesa: make _mesa_invalidate_shine_table() static
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/light.c | 13 | ||||
-rw-r--r-- | src/mesa/main/light.h | 2 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c index 39a984b1f19..a16d0e99884 100644 --- a/src/mesa/main/light.c +++ b/src/mesa/main/light.c @@ -623,6 +623,11 @@ _mesa_material_bitmask( struct gl_context *ctx, GLenum face, GLenum pname, +static void +invalidate_shine_table( struct gl_context *ctx, GLuint side ); + + + /* Update derived values following a change in ctx->Light.Material */ void @@ -696,11 +701,11 @@ _mesa_update_material( struct gl_context *ctx, GLuint bitmask ) } if (bitmask & MAT_BIT_FRONT_SHININESS) { - _mesa_invalidate_shine_table( ctx, 0 ); + invalidate_shine_table( ctx, 0 ); } if (bitmask & MAT_BIT_BACK_SHININESS) { - _mesa_invalidate_shine_table( ctx, 1 ); + invalidate_shine_table( ctx, 1 ); } } @@ -914,8 +919,8 @@ _mesa_GetMaterialiv( GLenum face, GLenum pname, GLint *params ) * lighting, and the cost of doing it early may be partially offset * by keeping a MRU cache of shine tables for various shine values. */ -void -_mesa_invalidate_shine_table( struct gl_context *ctx, GLuint side ) +static void +invalidate_shine_table( struct gl_context *ctx, GLuint side ) { ASSERT(side < 2); if (ctx->_ShineTable[side]) diff --git a/src/mesa/main/light.h b/src/mesa/main/light.h index 8b19e63a9c1..26e604bc523 100644 --- a/src/mesa/main/light.h +++ b/src/mesa/main/light.h @@ -110,8 +110,6 @@ extern GLuint _mesa_material_bitmask( struct gl_context *ctx, GLuint legal, const char * ); -extern void _mesa_invalidate_shine_table( struct gl_context *ctx, GLuint i ); - extern void _mesa_validate_all_lighting_tables( struct gl_context *ctx ); extern void _mesa_update_lighting( struct gl_context *ctx ); |