diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-07 14:50:55 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-07 14:51:30 +0100 |
commit | 2f91643cde954c23633c6f91940f7216796b949c (patch) | |
tree | 2bfd9bbe257398f2ab53ddcd1f377f7c44652602 /src | |
parent | e85271e516f811c60f440de61995cc5baf469a47 (diff) |
sna/dri: Fix transcription error in commit ab47433b20
Reversed a predicate causing it to fail to blit when it had a
drawable (and worse dereferencing a NULL pointer) instead of terminating
when the Drawable was gone.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_dri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c index 8b055e6f..9e8a4189 100644 --- a/src/sna/sna_dri.c +++ b/src/sna/sna_dri.c @@ -1772,7 +1772,7 @@ static void sna_dri_flip_event(struct sna *sna, sna_dri_frame_event_info_free(sna, flip->draw, flip); } else if (!sna_dri_flip_continue(sna, flip)) { DBG(("%s: no longer able to flip\n", __FUNCTION__)); - if (flip->draw || !sna_dri_immediate_blit(sna, flip, false, flip->mode == 1)) + if (flip->draw == NULL || !sna_dri_immediate_blit(sna, flip, false, flip->mode == 1)) sna_dri_frame_event_info_free(sna, flip->draw, flip); } break; |