Don't Swap buffer if a DRIDrawable is entirely obscured

by another window.
This commit is contained in:
Xiang, Haihao
2007-12-05 10:31:35 +08:00
parent 5b91ee27c0
commit 2407e48f28

View File

@@ -336,6 +336,9 @@ static void driSwapBuffers(__DRIdrawable *drawable)
__DRIdrawablePrivate *dPriv = drawable->private;
drm_clip_rect_t rect;
if (!dPriv->numClipRects)
return;
dPriv->swapBuffers(dPriv);
/* Check that we actually have the new damage report method */