fix parsing of state.texenv.color (bug 14931)
authorBrian <brian.paul@tungstengraphics.com>
Mon, 10 Mar 2008 13:41:53 +0000 (07:41 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 10 Mar 2008 13:43:40 +0000 (07:43 -0600)
src/mesa/shader/arbprogram.syn
src/mesa/shader/arbprogram_syn.h

index 1746a876c301ada0b757e4f355d201dcef25633a..f3aa1ad7249d87b8c2838d5061cd8bb14fc765b8 100644 (file)
@@ -1942,10 +1942,10 @@ stateTexEnvProperty
 fragment program
     <optLegacyTexUnitNum>  ::= ""
                              | "[" <legacyTexUnitNum> "]"
-
-NOTE: <optLegaceTexUnitNum> is not optional.
 */
 optLegacyTexUnitNum
+    optLegacyTexUnitNum_1 .or .true .emit 0x00;
+optLegacyTexUnitNum_1
     lbracket_ne .and legacyTexUnitNum .and rbracket;
 
 /*
index 5f3f7d6cf4641b0233d13953ba5b87463be4cd79..3f3ab073cf950deac55fdd8af0d8d57b7bf83bb5 100644 (file)
 "stateTexEnvProperty\n"
 " \"color\" .emit TEX_ENV_COLOR;\n"
 "optLegacyTexUnitNum\n"
+" optLegacyTexUnitNum_1 .or .true .emit 0x00;\n"
+"optLegacyTexUnitNum_1\n"
 " lbracket_ne .and legacyTexUnitNum .and rbracket;\n"
 "legacyTexUnitNum\n"
 " integer;\n"