fix parsing of state.texenv.color (bug 14931)
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 15 May 2008 01:19:53 +0000 (19:19 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 15 May 2008 01:19:53 +0000 (19:19 -0600)
cherry-picked from master

src/mesa/shader/arbprogram.syn
src/mesa/shader/arbprogram_syn.h

index ba17d638a3ab88f641c92ebe9b4cc840e00399a9..b12c6a0eda532c22d1faaae28b3a100319ca1672 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 e0c901ea8cda4ee956ae5967c2d2753dab41c88c..d95a5dede4af48538c53771f53b054aef0f30c78 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"