patch from bug 885992
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 28 Jan 2004 15:15:14 +0000 (15:15 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 28 Jan 2004 15:15:14 +0000 (15:15 +0000)
src/mesa/main/arbparse_syn.h

index 73ecdc7..3d033cd 100644 (file)
@@ -849,7 +849,13 @@ static char arb_grammar_text[] = ".syntax program;\n"
 "stateLModProperty_1\n"
 " dot .and \"ambient\" .emit LIGHT_MODEL_AMBIENT;\n"
 "stateLModProperty_2\n"
-" optFaceType .and dot .and \"scenecolor\" .emit LIGHT_MODEL_SCENECOLOR;\n"
+" stateLModProperty_2A .or stateLModProperty_2B .or stateLModProperty_2C;\n"
+"stateLModProperty_2A\n"
+" dot .and \"front\" .and dot .and \"scenecolor\" .emit LIGHT_MODEL_SCENECOLOR .emit FACE_FRONT;\n"
+"stateLModProperty_2B\n"
+" dot .and \"back\" .and dot .and \"scenecolor\" .emit LIGHT_MODEL_SCENECOLOR .emit FACE_BACK;\n"
+"stateLModProperty_2C\n"
+" dot .and \"scenecolor\" .emit LIGHT_MODEL_SCENECOLOR .emit FACE_FRONT;\n"
 "stateLightProdItem\n"
 " \"lightprod\" .and lbracket .and stateLightNumber .and rbracket .and optFaceType .and dot .and\n"
 " stateLProdProperty .error INVALID_LIGHTPROD_PROPERTY;\n"