summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-06-08 02:17:10 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-06-08 02:17:10 +0000
commit681b758f119a7c72175ccde5000996d7618295df (patch)
tree4b48423337b3eb5ed034bc2005ecb7192c7b52ed /src/mesa
parenta0b5c983645e672b6c86d2bd52764ad58fda5d70 (diff)
fix some renderbuffer problems for Xserver build (Dave Reveman)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/x11/xm_span.c4
1 files 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