r300: Further reduced the radeon_span.c diff.
[mesa.git] / src / mesa / swrast / s_readpix.c
index 7dc48aec6819123125b62306f98c585e9f311fee..fe9a70f4eae03932dc91a58be33e373c479c8f37 100644 (file)
@@ -404,7 +404,7 @@ read_rgba_pixels( GLcontext *ctx,
       /* no convolution */
       const GLint dstStride
          = _mesa_image_row_stride(packing, width, format, type);
-      GLfloat (*rgba)[4] = swrast->SpanArrays->color.sz4.rgba;
+      GLfloat (*rgba)[4] = swrast->SpanArrays->attribs[FRAG_ATTRIB_COL0];
       GLint row;
       GLubyte *dst
          = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height,