projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92d3b2a
)
swrast: remove some unneeded CHAN_TYPE!=GL_FLOAT code
author
Brian Paul
<brianp@vmware.com>
Thu, 9 Apr 2009 21:31:48 +0000
(15:31 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 10 Apr 2009 02:37:48 +0000
(20:37 -0600)
src/mesa/swrast/s_texcombine.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_texcombine.c
b/src/mesa/swrast/s_texcombine.c
index fae7280efb4c7a3f7e41822b7fc376f7fae975cd..08c49f5f2c34870e112d610abad0062b0da3d0b6 100644
(file)
--- a/
src/mesa/swrast/s_texcombine.c
+++ b/
src/mesa/swrast/s_texcombine.c
@@
-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: