mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
Don't Swap buffer if a DRIDrawable is entirely obscured
by another window.
This commit is contained in:
parent
5b91ee27c0
commit
2407e48f28
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue