From: Brian Paul Date: Wed, 8 Jun 2005 02:17:10 +0000 (+0000) Subject: fix some renderbuffer problems for Xserver build (Dave Reveman) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=681b758f119a7c72175ccde5000996d7618295df;p=mesa.git fix some renderbuffer problems for Xserver build (Dave Reveman) --- diff --git a/src/mesa/drivers/x11/xm_span.c b/src/mesa/drivers/x11/xm_span.c index b56ced6b5a6..768472f80a8 100644 --- a/src/mesa/drivers/x11/xm_span.c +++ b/src/mesa/drivers/x11/xm_span.c @@ -3832,7 +3832,7 @@ get_row_ci(GLcontext *ctx, struct gl_renderbuffer *rb, XMesaDestroyImage( span ); } #else - (*xmesa->display->GetImage)(source->buffer, + (*xmesa->display->GetImage)(xrb->pixmap, x, y, n, 1, ZPixmap, ~0L, (pointer)index); #endif @@ -3867,7 +3867,7 @@ get_row_rgba(GLcontext *ctx, struct gl_renderbuffer *rb, span = XMesaCreateImage(xmesa->xm_visual->BitsPerPixel, n, 1, NULL); span->data = (char *)MALLOC(span->height * span->bytes_per_line); error = (!span->data); - (*xmesa->display->GetImage)(source->buffer, + (*xmesa->display->GetImage)(xrb->pixmap, x, YFLIP(xrb, y), n, 1, ZPixmap, ~0L, (pointer)span->data); #else