From: Brian Paul Date: Thu, 9 Dec 2004 16:23:03 +0000 (+0000) Subject: check if using a PBuffer in clip_for_xgetimage() X-Git-Tag: 062012170305~23669 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8597dd3e96fdf36d3b6e13b4014c2fd064e99050;p=profile%2Fivi%2Fmesa.git check if using a PBuffer in clip_for_xgetimage() --- diff --git a/src/mesa/drivers/x11/xm_span.c b/src/mesa/drivers/x11/xm_span.c index 3ebca32..5945544 100644 --- a/src/mesa/drivers/x11/xm_span.c +++ b/src/mesa/drivers/x11/xm_span.c @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 5.1 + * Version: 6.3 * - * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -3473,6 +3473,8 @@ 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) + return 0; XTranslateCoordinates(xmesa->display, source->buffer, rootWin, *x, *y, &dx, &dy, &child); if (dx >= screenWidth) {