don't call XTranslateCoordinates() if rendering to pixmap
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user