summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_program.c
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2010-07-10 02:02:35 -0400
committerZack Rusin <zackr@vmware.com>2010-07-10 02:02:35 -0400
commit425870c5fdb40f7daf2e25323fa28c90c4367bae (patch)
tree00c1aed27016d3404c7c1d5a794a5ae5192b8879 /src/mesa/state_tracker/st_program.c
parent9808308f9ad05c5fd6916cb808c66be23f21db60 (diff)
mesa: get the translation from mesa 2d regs to tgsi working
first working version of arb_geometry_shader4
Diffstat (limited to 'src/mesa/state_tracker/st_program.c')
-rw-r--r--src/mesa/state_tracker/st_program.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 1d748965f8..6f3ecdbce1 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -492,6 +492,9 @@ st_translate_geometry_program(struct st_context *st,
/* which vertex output goes to the first geometry input */
vslot = 0;
+ memset(inputMapping, 0, sizeof(inputMapping));
+ memset(outputMapping, 0, sizeof(outputMapping));
+
/*
* Convert Mesa program inputs to TGSI input register semantics.
*/