From: Mathias Fröhlich Date: Sun, 22 May 2016 12:10:19 +0000 (+0200) Subject: mesa: Switch to bitmask based enabled lights in gen_matypes.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21f7f67685587f359f500019a7f4995151995792;p=mesa.git mesa: Switch to bitmask based enabled lights in gen_matypes.c Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich --- diff --git a/src/mesa/x86/gen_matypes.c b/src/mesa/x86/gen_matypes.c index 18ffb728a2a..fc06dc7ea97 100644 --- a/src/mesa/x86/gen_matypes.c +++ b/src/mesa/x86/gen_matypes.c @@ -125,7 +125,7 @@ int main( int argc, char **argv ) OFFSET( "CTX_LIGHT_COLOR_MAT_MODE ", struct gl_context, Light.ColorMaterialMode ); OFFSET( "CTX_LIGHT_COLOR_MAT_MASK ", struct gl_context, Light._ColorMaterialBitmask ); OFFSET( "CTX_LIGHT_COLOR_MAT_ENABLED ", struct gl_context, Light.ColorMaterialEnabled ); - OFFSET( "CTX_LIGHT_ENABLED_LIST ", struct gl_context, Light.EnabledList ); + OFFSET( "CTX_LIGHT_ENABLED_LIGHTS ", struct gl_context, Light._EnabledLights ); OFFSET( "CTX_LIGHT_NEED_VERTS ", struct gl_context, Light._NeedVertices ); OFFSET( "CTX_LIGHT_BASE_COLOR ", struct gl_context, Light._BaseColor ); @@ -208,8 +208,6 @@ int main( int argc, char **argv ) */ OFFSET_HEADER( "struct gl_light" ); - OFFSET( "LIGHT_NEXT ", struct gl_light, next ); - OFFSET( "LIGHT_PREV ", struct gl_light, prev ); printf( "\n" ); OFFSET( "LIGHT_AMBIENT ", struct gl_light, Ambient ); OFFSET( "LIGHT_DIFFUSE ", struct gl_light, Diffuse );