OSDN Git Service

check for PIXMAP in clip routine (SF bug 1323215)
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 11 Oct 2005 01:21:40 +0000 (01:21 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 11 Oct 2005 01:21:40 +0000 (01:21 +0000)
src/mesa/drivers/x11/xm_span.c

index 64fa34a..664f365 100644 (file)
@@ -3762,7 +3762,7 @@ clip_for_xgetimage(GLcontext *ctx, GLuint *n, GLint *x, GLint *y)
    Window child;
    GLint screenWidth = WidthOfScreen(DefaultScreenOfDisplay(xmesa->display));
    GLint dx, dy;
-   if (source->type == PBUFFER)
+   if (source->type == PBUFFER || source->type == PIXMAP)
       return 0;
    XTranslateCoordinates(xmesa->display, source->frontxrb->pixmap, rootWin,
                          *x, *y, &dx, &dy, &child);