summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/sna_dri2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index 2ed698d9..c3346434 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -2484,14 +2484,14 @@ static void chain_swap(struct sna_dri2_event *chain)
DBG(("%s: draw=%ld, queued?=%d, type=%d\n",
__FUNCTION__, (long)chain->draw->id, chain->queued, chain->type));
+ if (chain->queued) /* too early! */
+ return;
+
if (chain->draw == NULL) {
sna_dri2_event_free(chain);
return;
}
- if (chain->queued) /* too early! */
- return;
-
assert(chain == dri2_chain(chain->draw));
assert(chain->signal);