From 67adba15a2a454cadb27a86b24e5e67ba65ae6b0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 9 Dec 2000 20:35:54 +0000 Subject: [PATCH] initialize convolution filters to zero --- src/mesa/main/context.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index ae3397c1480..b727257cdde 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); -- 2.30.2