summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xc/programs/Xserver/GL/dri/dri.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xc/programs/Xserver/GL/dri/dri.c b/xc/programs/Xserver/GL/dri/dri.c
index 56d7c9bff..2b11c48f1 100644
--- a/xc/programs/Xserver/GL/dri/dri.c
+++ b/xc/programs/Xserver/GL/dri/dri.c
@@ -940,7 +940,7 @@ DRIGetDrawableInfo(
*auxX = *X;
*auxY = *Y;
- if (pDRIPriv->nrWindows == 1) {
+ if (pDRIPriv->nrWindows == 1 && *numClipRects) {
/* Use a single cliprect. */
int x0 = *X;
@@ -958,7 +958,6 @@ DRIGetDrawableInfo(
pDRIPriv->private_buffer_rect.x2 = x1;
pDRIPriv->private_buffer_rect.y2 = y1;
- /* Culled case? */
*numAuxClipRects = 1;
*pAuxClipRects = &(pDRIPriv->private_buffer_rect);
} else {