summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/light.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-02-08 20:11:58 -0700
committerBrian Paul <[email protected]>2012-02-10 08:06:56 -0700
commitae509f88a54b9cc32f16099109330f2792593c83 (patch)
tree482cf3dde475b64fcc3c2d2e9dee17db6df3c23f /src/mesa/main/light.h
parent4dacf793c8bf5c18f66efeb04e9d8a7e037e7378 (diff)
mesa: remove gl_light::_SpotExpTable field
Just use pow() instead. Spot lights aren't too common and fixed-function lighting isn't as important as it used to me. This saves 32KB per context. Each table was 4KB and there's 8 lights.
Diffstat (limited to 'src/mesa/main/light.h')
-rw-r--r--src/mesa/main/light.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/main/light.h b/src/mesa/main/light.h
index 9b66c7ed853..8b19e63a9c1 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_spot_exp_table( struct gl_light *l );
-
extern void _mesa_invalidate_shine_table( struct gl_context *ctx, GLuint i );
extern void _mesa_validate_all_lighting_tables( struct gl_context *ctx );
@@ -135,7 +133,6 @@ extern void _mesa_allow_light_in_model( struct gl_context *ctx, GLboolean flag )
#else
#define _mesa_update_color_material( c, r ) ((void)0)
#define _mesa_validate_all_lighting_tables( c ) ((void)0)
-#define _mesa_invalidate_spot_exp_table( l ) ((void)0)
#define _mesa_material_bitmask( c, f, p, l, s ) 0
#define _mesa_init_lighting( c ) ((void)0)
#define _mesa_free_lighting_data( c ) ((void)0)