fix parsing of state.texenv.color (bug 14931)
cherry-picked from master
This commit is contained in:
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -926,6 +926,8 @@
|
||||
"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"
|
||||
|
Reference in New Issue
Block a user