merge from master
[mesa.git] / src / mesa / swrast / s_copypix.c
index b318777072ae43c0fcd8578371c51cfc5182bdca..2051e1f3b73579832c51c9f3c3059455b3c7c313 100644 (file)
@@ -268,7 +268,7 @@ copy_rgba_pixels(GLcontext *ctx, GLint srcx, GLint srcy,
    ASSERT(width < MAX_WIDTH);
 
    for (row = 0; row < height; row++, sy += stepy, dy += stepy) {
-      GLvoid *rgba = span.array->color.sz4.rgba;
+      GLvoid *rgba = span.array->attribs[FRAG_ATTRIB_COL0];
 
       /* Get row/span of source pixels */
       if (overlapping) {