summaryrefslogtreecommitdiff
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-04-17 22:08:28 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-04-17 22:08:28 +0000
commit72fc93302cd1d3738a79e981118562a20d3888fb (patch)
treed69743dbad073f3023640df9ffcdf9e8dfe5f905 /src/mesa/swrast
parentbcfe3936a8722f43639ad853649c7f0ea8591cf3 (diff)
minor optimization to dot3 computation
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_texture.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c
index 78c38c07fd..04eb0117fc 100644
--- a/src/mesa/swrast/s_texture.c
+++ b/src/mesa/swrast/s_texture.c
@@ -1,4 +1,4 @@
-/* $Id: s_texture.c,v 1.24 2001/04/17 21:25:53 brianp Exp $ */
+/* $Id: s_texture.c,v 1.25 2001/04/17 22:08:28 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -2005,9 +2005,8 @@ texture_combine(const GLcontext *ctx,
(GLint)arg1[i][GCOMP] - 128) +
S_PROD((GLint)arg0[i][BCOMP] - 128,
(GLint)arg1[i][BCOMP] - 128)) >> 6;
- rgba[i][RCOMP] = (GLubyte) CLAMP(dot, 0, 255);
- rgba[i][GCOMP] = (GLubyte) CLAMP(dot, 0, 255);
- rgba[i][BCOMP] = (GLubyte) CLAMP(dot, 0, 255);
+ dot = CLAMP(dot, 0, 255);
+ rgba[i][RCOMP] = rgba[i][GCOMP] = rgba[i][BCOMP] = (GLubyte)dot;
}
}
break;