summaryrefslogtreecommitdiff
path: root/src/mesa/main/convolve.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-05-09 22:24:22 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-05-09 22:24:22 +0000
commit8acb7e9ea211423e196dac4dfde312ffeb78619a (patch)
tree41c0fd77d857a056aec09810bbcfb6a75bceb287 /src/mesa/main/convolve.c
parent20dc7e69459a9b529ce99f0669b78ea83162a78d (diff)
fixed loop bug in _mesa_ConvolutionFilter2D()
Diffstat (limited to 'src/mesa/main/convolve.c')
-rw-r--r--src/mesa/main/convolve.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/convolve.c b/src/mesa/main/convolve.c
index aedbf091a7..faea445e4c 100644
--- a/src/mesa/main/convolve.c
+++ b/src/mesa/main/convolve.c
@@ -1,4 +1,4 @@
-/* $Id: convolve.c,v 1.23 2001/03/19 02:25:35 keithw Exp $ */
+/* $Id: convolve.c,v 1.24 2001/05/09 22:24:22 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -243,7 +243,7 @@ _mesa_ConvolutionFilter2D(GLenum target, GLenum internalFormat, GLsizei width, G
{
const GLfloat *scale = ctx->Pixel.ConvolutionFilterScale[1];
const GLfloat *bias = ctx->Pixel.ConvolutionFilterBias[1];
- for (i = 0; i < width * height * 4; i++) {
+ for (i = 0; i < width * height; i++) {
GLfloat r = ctx->Convolution2D.Filter[i * 4 + 0];
GLfloat g = ctx->Convolution2D.Filter[i * 4 + 1];
GLfloat b = ctx->Convolution2D.Filter[i * 4 + 2];