swrast: fix unmatched span->array->ChanType
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 21 Nov 2011 08:31:58 +0000 (16:31 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 21 Nov 2011 08:32:39 +0000 (16:32 +0800)
commit2e6402feb754dd6384ee27fe623a7f9fce66dcaf
treef3ffd33ca0f4d46ed43c97181fa9d0fb4db13be5
parent6ba8f0688a35ffac93bd025739aefe8e3694ca0c
swrast: fix unmatched span->array->ChanType

texture_combine converts the result rgba to CHAN_TYPE from FLOAT. At the
same time, make sure the span->array->ChanType is changed, too.

v2: pick a nicer comment from Brian

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/swrast/s_texcombine.c