added _NEW_PROGRAM to check_state flags for pipeline stages (fixes vparray demo bug)
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 31 Jan 2004 19:39:04 +0000 (19:39 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 31 Jan 2004 19:39:04 +0000 (19:39 +0000)
src/mesa/tnl/t_vb_fog.c
src/mesa/tnl/t_vb_light.c
src/mesa/tnl/t_vb_normals.c
src/mesa/tnl/t_vb_points.c
src/mesa/tnl/t_vb_texgen.c
src/mesa/tnl/t_vb_texmat.c

index 2ad41f5bbd20ab19a616ba04d31cf00d182446c3..bbbf54baac94f53e5934af81810dcd2079cfb41c 100644 (file)
@@ -241,7 +241,7 @@ static void free_fog_data( struct tnl_pipeline_stage *stage )
 const struct tnl_pipeline_stage _tnl_fog_coordinate_stage =
 {
    "build fog coordinates",    /* name */
-   _NEW_FOG,                   /* check_state */
+   _NEW_FOG|_NEW_PROGRAM,      /* check_state */
    _NEW_FOG,                   /* run_state */
    GL_FALSE,                   /* active? */
    0,                          /* inputs */
index 3ca25395da4df0af584eb6e2328a7cd2d15d93cd..1d260fafb20c2b7868e6d726b9741dfd3008cabd 100644 (file)
@@ -352,7 +352,7 @@ static void dtr( struct tnl_pipeline_stage *stage )
 const struct tnl_pipeline_stage _tnl_lighting_stage =
 {
    "lighting",                 /* name */
-   _NEW_LIGHT,                 /* recheck */
+   _NEW_LIGHT|_NEW_PROGRAM,                    /* recheck */
    _NEW_LIGHT|_NEW_MODELVIEW,  /* recalc -- modelview dependency
                                 * otherwise not captured by inputs
                                 * (which may be _TNL_BIT_POS) */
index 2908f1aee082be4cb48d37b7b0d4bf2952a3542e..2247313653481b2613ba58a805e9671069b0ddd5 100644 (file)
@@ -179,6 +179,7 @@ static void free_normal_data( struct tnl_pipeline_stage *stage )
 
 #define _TNL_NEW_NORMAL_TRANSFORM        (_NEW_MODELVIEW| \
                                          _NEW_TRANSFORM| \
+                                         _NEW_PROGRAM| \
                                           _MESA_NEW_NEED_NORMALS| \
                                           _MESA_NEW_NEED_EYE_COORDS)
 
index 9ef98fab22f05f0f60d653d7cb38f736121d88a3..1990886479390990907de879945b37d6c0979ac5 100644 (file)
@@ -111,10 +111,10 @@ static void free_point_data( struct tnl_pipeline_stage *stage )
 const struct tnl_pipeline_stage _tnl_point_attenuation_stage =
 {
    "point size attenuation",   /* name */
-   _NEW_POINT,                 /* build_state_change */
-   _NEW_POINT,                 /* run_state_change */
+   _NEW_POINT|_NEW_PROGRAM,    /* check_state */
+   _NEW_POINT,                 /* run_state */
    GL_FALSE,                   /* active */
-   _TNL_BIT_POS,                       /* inputs */
+   _TNL_BIT_POS,               /* inputs */
    _TNL_BIT_POS,               /* outputs */
    0,                          /* changed_inputs (temporary value) */
    NULL,                       /* stage private data */
index 68ee089c095b25f7025d6d31f1dab9f2218d553c..64d569a0192a5df8400b55869987cc0860ad52e9 100644 (file)
@@ -678,7 +678,7 @@ static void free_texgen_data( struct tnl_pipeline_stage *stage )
 const struct tnl_pipeline_stage _tnl_texgen_stage =
 {
    "texgen",                   /* name */
-   _NEW_TEXTURE,               /* when to call check() */
+   _NEW_TEXTURE|_NEW_PROGRAM,  /* when to call check() */
    _NEW_TEXTURE,               /* when to invalidate stored data */
    GL_FALSE,                   /* active? */
    0,                          /* inputs */
index 363a76a48761aad57e2e37391ff42e0e7395869c..221dd5828007b4e47d27b1f7bbf6ab3bfa309faf 100644 (file)
@@ -137,7 +137,7 @@ static void free_texmat_data( struct tnl_pipeline_stage *stage )
 const struct tnl_pipeline_stage _tnl_texture_transform_stage =
 {
    "texture transform",                        /* name */
-   _NEW_TEXTURE|_NEW_TEXTURE_MATRIX,   /* check_state */
+   _NEW_TEXTURE|_NEW_TEXTURE_MATRIX|_NEW_PROGRAM,      /* check_state */
    _NEW_TEXTURE|_NEW_TEXTURE_MATRIX,   /* run_state */
    GL_FALSE,                           /* active? */
    0,                                  /* inputs */