summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/xm_span.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-05-04 14:50:45 +0000
committerBrian Paul <[email protected]>2005-05-04 14:50:45 +0000
commitf5581bb9943c4b711ce5e7bea4979adacd9b85d8 (patch)
tree89babbf2af2abde5e559bea6911abd52ded8be6e /src/mesa/drivers/x11/xm_span.c
parent47b29f511a8e917c65536fde90397d54d2ad23d3 (diff)
don't call XTranslateCoordinates() if rendering to pixmap
Diffstat (limited to 'src/mesa/drivers/x11/xm_span.c')
-rw-r--r--src/mesa/drivers/x11/xm_span.c2
1 files changed, 1 insertions, 1 deletions
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);