fix parsing of state.texenv.color (bug 14931)
cherry-picked from master
This commit is contained in:
@@ -1942,10 +1942,10 @@ stateTexEnvProperty
|
|||||||
fragment program
|
fragment program
|
||||||
<optLegacyTexUnitNum> ::= ""
|
<optLegacyTexUnitNum> ::= ""
|
||||||
| "[" <legacyTexUnitNum> "]"
|
| "[" <legacyTexUnitNum> "]"
|
||||||
|
|
||||||
NOTE: <optLegaceTexUnitNum> is not optional.
|
|
||||||
*/
|
*/
|
||||||
optLegacyTexUnitNum
|
optLegacyTexUnitNum
|
||||||
|
optLegacyTexUnitNum_1 .or .true .emit 0x00;
|
||||||
|
optLegacyTexUnitNum_1
|
||||||
lbracket_ne .and legacyTexUnitNum .and rbracket;
|
lbracket_ne .and legacyTexUnitNum .and rbracket;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -926,6 +926,8 @@
|
|||||||
"stateTexEnvProperty\n"
|
"stateTexEnvProperty\n"
|
||||||
" \"color\" .emit TEX_ENV_COLOR;\n"
|
" \"color\" .emit TEX_ENV_COLOR;\n"
|
||||||
"optLegacyTexUnitNum\n"
|
"optLegacyTexUnitNum\n"
|
||||||
|
" optLegacyTexUnitNum_1 .or .true .emit 0x00;\n"
|
||||||
|
"optLegacyTexUnitNum_1\n"
|
||||||
" lbracket_ne .and legacyTexUnitNum .and rbracket;\n"
|
" lbracket_ne .and legacyTexUnitNum .and rbracket;\n"
|
||||||
"legacyTexUnitNum\n"
|
"legacyTexUnitNum\n"
|
||||||
" integer;\n"
|
" integer;\n"
|
||||||
|
Reference in New Issue
Block a user