mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-20 03:58:22 +02:00
Don't Swap buffer if a DRIDrawable is entirely obscured by another window.
This commit is contained in:
parent
0fd38dcc83
commit
8998f52b97
1 changed files with 3 additions and 0 deletions
|
|
@ -486,6 +486,9 @@ static void driSwapBuffers( __DRInativeDisplay *dpy, void *drawablePrivate )
|
|||
__DRIdrawablePrivate *dPriv = (__DRIdrawablePrivate *) drawablePrivate;
|
||||
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