pass in the renderbuffer
authorAlan Hourihane <alanh@tungstengraphics.com>
Mon, 18 Jul 2005 13:50:06 +0000 (13:50 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Mon, 18 Jul 2005 13:50:06 +0000 (13:50 +0000)
src/mesa/swrast/s_masking.c

index f58b2c20e24c4c4d4cc5f156a76276e4dec98c91..391dfde7a190f31eedb9ad0497a77b5842fa2eb7 100644 (file)
@@ -111,7 +111,7 @@ _swrast_mask_rgba_array(GLcontext *ctx, struct gl_renderbuffer *rb,
    const GLint bMask = ctx->Color.ColorMask[BCOMP];
    const GLint aMask = ctx->Color.ColorMask[ACOMP];
 
-   _swrast_read_rgba_span( ctx, ctx->DrawBuffer, n, x, y, dest );
+   _swrast_read_rgba_span( ctx, rb, n, x, y, dest );
    for (i = 0; i < n; i++) {
       if (!rMask)  rgba[i][RCOMP] = dest[i][RCOMP];
       if (!gMask)  rgba[i][GCOMP] = dest[i][GCOMP];