summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/program_parse.y
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2009-09-01 11:10:05 -0700
committerIan Romanick <[email protected]>2009-09-01 11:11:31 -0700
commit847bc5c852214a344b6b39c619d182cb1058ecbc (patch)
treec78b150d8972e0d49ff48d9377ea5a4a821f4608 /src/mesa/shader/program_parse.y
parentb3f4b56a3b7f979c631358caefed635c6ec56453 (diff)
ARB prog parser: Fix handling of stateOptModMatNum
The optional array index should clearly be enclosed in square brackets. This helps the oglconform test vp_binding.c get a bit farther, but it still fails.
Diffstat (limited to 'src/mesa/shader/program_parse.y')
-rw-r--r--src/mesa/shader/program_parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y
index e2e83e484f5..46f300408be 100644
--- a/src/mesa/shader/program_parse.y
+++ b/src/mesa/shader/program_parse.y
@@ -1492,9 +1492,9 @@ stateOptModMatNum:
{
$$ = 0;
}
- | stateModMatNum
+ | '[' stateModMatNum ']'
{
- $$ = $1;
+ $$ = $2;
}
;
stateModMatNum: INTEGER