From 681b758f119a7c72175ccde5000996d7618295df Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2005 02:17:10 +0000 Subject: [PATCH] fix some renderbuffer problems for Xserver build (Dave Reveman) --- src/mesa/drivers/x11/xm_span.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2