diff options
author | José Fonseca <[email protected]> | 2009-04-15 20:07:48 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-04-15 20:08:33 +0100 |
commit | af9d202b26f75555b653dbe1c2ebaf6a2cf14d28 (patch) | |
tree | 4f9ad9e7e5e26d13e0499c5bcdf13ddc5a603073 /src | |
parent | 05471828dc8dd4a184d4467b66e9c08449d1d4c9 (diff) |
mesa: TGSI translation of multiple render targets.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 6348e83d8ae..2795570cf10 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -484,14 +484,14 @@ st_translate_fragment_program(struct st_context *st, /* handled above */ assert(0); break; - case FRAG_RESULT_COLOR: + default: + assert(attr == FRAG_RESULT_COLOR || + (FRAG_RESULT_DATA0 <= attr && attr < FRAG_RESULT_MAX)); fs_output_semantic_name[fs_num_outputs] = TGSI_SEMANTIC_COLOR; fs_output_semantic_index[fs_num_outputs] = numColors; outputMapping[attr] = fs_num_outputs; numColors++; break; - default: - assert(0); } output_flags[fs_num_outputs] = stfp->Base.Base.OutputFlags[attr]; |