don't call XTranslateCoordinates() if rendering to pixmap
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 4 May 2005 14:50:45 +0000 (14:50 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 4 May 2005 14:50:45 +0000 (14:50 +0000)
src/mesa/drivers/x11/xm_span.c

index 397d596c0c04a01861d8a2a3cf99f24ba2c95fc9..b3b5970bdf9d8f5213a663b275feae2086a462e9 100644 (file)
@@ -3649,7 +3649,7 @@ clip_for_xgetimage(XMesaContext xmesa, 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->buffer, rootWin,
                          *x, *y, &dx, &dy, &child);