Add _NEW_PROGRAM flag to _MESA_NEW_NEED_EYE_COORDS.
authorBrian <brian@yutani.localnet.net>
Sat, 3 Feb 2007 17:31:16 +0000 (10:31 -0700)
committerBrian <brian@yutani.localnet.net>
Sat, 3 Feb 2007 17:31:16 +0000 (10:31 -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 7cd407a27428dd956d74b05520e3c4b67eb97a6a..76b36d60f1b4011b722eebb08e2839c55ca7f0c7 100644 (file)
@@ -2746,6 +2746,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 |                \