From: Brian Date: Fri, 6 Apr 2007 03:12:44 +0000 (-0600) Subject: fix color storage bug in convolution path X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51a894e6ebc3412a6d634a7378806f137374b09a;p=mesa.git fix color storage bug in convolution path --- diff --git a/src/mesa/swrast/s_copypix.c b/src/mesa/swrast/s_copypix.c index b400c02ad18..8f37a3dc8e5 100644 --- a/src/mesa/swrast/s_copypix.c +++ b/src/mesa/swrast/s_copypix.c @@ -163,7 +163,7 @@ copy_conv_rgba_pixels(GLcontext *ctx, GLint srcx, GLint srcy, /* write the new image */ for (row = 0; row < height; row++) { const GLfloat *src = convImage + row * width * 4; - GLvoid *rgba = span.array->color.sz1.rgba; /* row storage */ + GLvoid *rgba = (GLvoid *) span.array->attribs[FRAG_ATTRIB_COL0]; /* copy convolved colors into span array */ _mesa_memcpy(rgba, src, width * 4 * sizeof(GLfloat));