diff options
Diffstat (limited to 'src/mesa/drivers/dri/common/dri_util.c')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 2e2e64c4d18..2b378a531e0 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -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 */ |