Don't Swap buffer if a DRIDrawable is entirely obscured
by another window.
This commit is contained in:
parent
5b91ee27c0
commit
2407e48f28
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue