check for PIXMAP in clip routine (SF bug 1323215)

This commit is contained in:
Brian Paul 2005-10-11 01:21:40 +00:00
parent ac04a4fa7f
commit e7325294d0

View file

@ -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);