mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
swrast: remove some unneeded CHAN_TYPE!=GL_FLOAT code
This commit is contained in:
parent
92d3b2a4da
commit
6c2d1e6839
1 changed files with 0 additions and 7 deletions
|
|
@ -408,17 +408,10 @@ texture_combine( GLcontext *ctx, GLuint unit, GLuint n,
|
|||
/* this produces a fixed rgba color, and the coord calc is done elsewhere */
|
||||
for (i = 0; i < n; i++) {
|
||||
/* rgba result is 0,0,0,1 */
|
||||
#if CHAN_TYPE == GL_FLOAT
|
||||
rgba[i][RCOMP] = 0.0;
|
||||
rgba[i][GCOMP] = 0.0;
|
||||
rgba[i][BCOMP] = 0.0;
|
||||
rgba[i][ACOMP] = 1.0;
|
||||
#else
|
||||
rgba[i][RCOMP] = 0;
|
||||
rgba[i][GCOMP] = 0;
|
||||
rgba[i][BCOMP] = 0;
|
||||
rgba[i][ACOMP] = CHAN_MAX;
|
||||
#endif
|
||||
}
|
||||
return; /* no alpha processing */
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue