summaryrefslogtreecommitdiff
path: root/src/sna/sna_dri.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-09-22 17:29:33 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-09-23 10:48:52 +0100
commitf296872f373d3439b08e055b03584763e6c2ffec (patch)
treeb57db60ad903290d4bf2c45ef899c63f4f1c450a /src/sna/sna_dri.c
parent42330fbae862cda9ca17ec62eb0d2e4fb86032b8 (diff)
sna/dri: Fix SwapbufferWait
A regression from commit f99e49f7642545f75bac682274767c45c2e6192a Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Sep 17 09:15:40 2013 +0100 intel: Make the option to control VSync and PageFlip explict which used the inverse meaning of the option to disable waiting on swapbuffers. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_dri.c')
-rw-r--r--src/sna/sna_dri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c
index 6584e668..a146f74a 100644
--- a/src/sna/sna_dri.c
+++ b/src/sna/sna_dri.c
@@ -1973,7 +1973,7 @@ sna_dri_schedule_swap(ClientPtr client, DrawablePtr draw, DRI2BufferPtr front,
/* Drawable not displayed... just complete the swap */
pipe = -1;
- if (sna->flags & SNA_NO_WAIT)
+ if ((sna->flags & SNA_NO_WAIT) == 0)
pipe = sna_dri_get_pipe(draw);
if (pipe == -1) {
DBG(("%s: off-screen, immediate update\n", __FUNCTION__));