From e7325294d0d35b34d1869f7c4e97a9be76faf181 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 11 Oct 2005 01:21:40 +0000 Subject: check for PIXMAP in clip routine (SF bug 1323215) --- src/mesa/drivers/x11/xm_span.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/drivers/x11') diff --git a/src/mesa/drivers/x11/xm_span.c b/src/mesa/drivers/x11/xm_span.c index 64fa34a132..664f365df9 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); -- cgit v1.2.3