fix some renderbuffer problems for Xserver build (Dave Reveman)
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 8 Jun 2005 02:17:10 +0000 (02:17 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 8 Jun 2005 02:17:10 +0000 (02:17 +0000)
src/mesa/drivers/x11/xm_span.c

index b56ced6b5a67a01a64e6df22241f210199c1cc74..768472f80a831fb3d0e2fd8279ce9ed6fb5e4892 100644 (file)
@@ -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