From f5581bb9943c4b711ce5e7bea4979adacd9b85d8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 4 May 2005 14:50:45 +0000 Subject: don't call XTranslateCoordinates() if rendering to pixmap --- src/mesa/drivers/x11/xm_span.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/drivers/x11/xm_span.c b/src/mesa/drivers/x11/xm_span.c index 397d596c0c0..b3b5970bdf9 100644 --- a/src/mesa/drivers/x11/xm_span.c +++ b/src/mesa/drivers/x11/xm_span.c @@ -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); -- cgit v1.2.3