summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-12-09 20:35:54 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-12-09 20:35:54 +0000
commit67adba15a2a454cadb27a86b24e5e67ba65ae6b0 (patch)
treec86dd48187d59cc460a2c56f6875d27d48c97df4 /src/mesa/main
parent90f8ebfd8f68a888e404206aa3dd9bed1e786be6 (diff)
initialize convolution filters to zero
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/context.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index ae3397c148..b727257cdd 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1,4 +1,4 @@
-/* $Id: context.c,v 1.111 2000/12/08 00:20:15 brianp Exp $ */
+/* $Id: context.c,v 1.112 2000/12/09 20:35:54 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1080,6 +1080,11 @@ init_attrib_groups( GLcontext *ctx )
ASSIGN_4V(ctx->Pixel.ConvolutionFilterScale[i], 1.0, 1.0, 1.0, 1.0);
ASSIGN_4V(ctx->Pixel.ConvolutionFilterBias[i], 0.0, 0.0, 0.0, 0.0);
}
+ for (i = 0; i < MAX_CONVOLUTION_WIDTH * MAX_CONVOLUTION_WIDTH * 4; i++) {
+ ctx->Convolution1D.Filter[i] = 0.0;
+ ctx->Convolution2D.Filter[i] = 0.0;
+ ctx->Separable2D.Filter[i] = 0.0;
+ }
ASSIGN_4V(ctx->Pixel.PostConvolutionScale, 1.0, 1.0, 1.0, 1.0);
ASSIGN_4V(ctx->Pixel.PostConvolutionBias, 0.0, 0.0, 0.0, 0.0);