From: Brian Paul Date: Tue, 11 Oct 2005 01:21:40 +0000 (+0000) Subject: check for PIXMAP in clip routine (SF bug 1323215) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7325294d0d35b34d1869f7c4e97a9be76faf181;p=mesa.git check for PIXMAP in clip routine (SF bug 1323215) --- diff --git a/src/mesa/drivers/x11/xm_span.c b/src/mesa/drivers/x11/xm_span.c index 64fa34a1320..664f365df96 100644 --- a/src/mesa/drivers/x11/xm_span.c +++ b/src/mesa/drivers/x11/xm_span.c @@ -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);