1 commit 2407e48f2805e27e76e2e1d7083926c4077d9032
2 Author: Xiang, Haihao <haihao.xiang@intel.com>
3 Date: Wed Dec 5 10:31:35 2007 +0800
5 Don't Swap buffer if a DRIDrawable is entirely obscured
8 diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
9 index 2e2e64c..2b378a5 100644
10 --- a/src/mesa/drivers/dri/common/dri_util.c
11 +++ b/src/mesa/drivers/dri/common/dri_util.c
12 @@ -336,6 +336,9 @@ static void driSwapBuffers(__DRIdrawable *drawable)
13 __DRIdrawablePrivate *dPriv = drawable->private;
16 + if (!dPriv->numClipRects)
19 dPriv->swapBuffers(dPriv);
21 /* Check that we actually have the new damage report method */