From: Alan Hourihane Date: Mon, 18 Jul 2005 13:50:06 +0000 (+0000) Subject: pass in the renderbuffer X-Git-Tag: mesa-7.8~8892 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c235a96a7198f5975baec3870e48ee83bf32e23a;p=platform%2Fupstream%2Fmesa.git pass in the renderbuffer --- diff --git a/src/mesa/swrast/s_masking.c b/src/mesa/swrast/s_masking.c index f58b2c2..391dfde 100644 --- a/src/mesa/swrast/s_masking.c +++ b/src/mesa/swrast/s_masking.c @@ -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];