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 64fa34a1320a00d4fbb6b1baca3daaf580a44f3c..664f365df964f115202ad8dc2ac97967625b6da8 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);