mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 23:30:22 +01:00
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>
This commit is contained in:
parent
6ba8f0688a
commit
2e6402feb7
1 changed files with 4 additions and 0 deletions
|
|
@ -545,6 +545,10 @@ texture_combine( struct gl_context *ctx, GLuint unit,
|
|||
UNCLAMPED_FLOAT_TO_CHAN(rgbaChan[i][BCOMP], rgba[i][BCOMP]);
|
||||
UNCLAMPED_FLOAT_TO_CHAN(rgbaChan[i][ACOMP], rgba[i][ACOMP]);
|
||||
}
|
||||
/* The span->array->rgba values are of CHAN type so set
|
||||
* span->array->ChanType field accordingly.
|
||||
*/
|
||||
span->array->ChanType = CHAN_TYPE;
|
||||
|
||||
end:
|
||||
for (i = 0; i < numArgsRGB || i < numArgsA; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue