diff options
author | Brian <[email protected]> | 2007-12-19 08:49:59 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-12-19 13:16:36 -0700 |
commit | c61b32777b5b3b138c8bf5fac7e7e70ec084c8c1 (patch) | |
tree | e691375f14b9f9737f5ac9b5614b2a93540bc984 /src/mesa | |
parent | d24a9b26fc44b586a19d46e731e61a5d133868d9 (diff) |
new assertions
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 3 |
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 6802bb3b06d..1852228b29b 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -167,6 +167,7 @@ st_translate_vertex_program(struct st_context *st, switch (attr) { case VERT_RESULT_HPOS: + assert(slot == 0); vs.output_semantic_name[slot] = TGSI_SEMANTIC_POSITION; vs.output_semantic_index[slot] = 0; break; @@ -218,6 +219,8 @@ st_translate_vertex_program(struct st_context *st, } } + assert(vs.output_semantic_name[0] == TGSI_SEMANTIC_POSITION); + if (outputMapping) { /* find max output slot referenced to compute vs.num_outputs */ |