Add _NEW_PROGRAM flag to _MESA_NEW_NEED_EYE_COORDS.
authorBrian <brian@yutani.localnet.net>
Sat, 3 Feb 2007 17:30:50 +0000 (10:30 -0700)
committerBrian <brian@yutani.localnet.net>
Sat, 3 Feb 2007 17:30:50 +0000 (10:30 -0700)
This fixes a segfault in the texgen code that can occur after we've
disabled a vertex program.

src/mesa/main/mtypes.h

index 2ad37d3a8d7b3fefb6306ac92d221495c61fc728..e8f0f45d3990eb094872f6e75da432c3caf71796 100644 (file)
@@ -2674,6 +2674,7 @@ struct matrix_stack
 #define _MESA_NEW_NEED_EYE_COORDS         (_NEW_LIGHT |                \
                                            _NEW_TEXTURE |      \
                                            _NEW_POINT |                \
+                                           _NEW_PROGRAM |      \
                                            _NEW_MODELVIEW)
 
 #define _MESA_NEW_NEED_NORMALS            (_NEW_LIGHT |                \