Commit 2407e48f authored by Haihao Xiang's avatar Haihao Xiang

Don't Swap buffer if a DRIDrawable is entirely obscured

by another window.
parent 5b91ee27
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment