From 91b1f77da59ab7951e5d9aa09cbc0d2335d4c62a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 6 Sep 2013 00:23:37 +0100 Subject: intel-virtual-output: Make the flush for recreating Damage explicit Signed-off-by: Chris Wilson --- tools/virtual.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/virtual.c') diff --git a/tools/virtual.c b/tools/virtual.c index 2262e555..5decd896 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -1760,7 +1760,6 @@ static int display_init_damage(struct display *display) if (display->damage == 0) return EACCES; - display->flush = 1; return 0; } @@ -1772,7 +1771,8 @@ static void display_reset_damage(struct display *display) if (damage) { XDamageDestroy(display->dpy, display->damage); display->damage = damage; - display->flush = 1; + XFlush(display->dpy); + display->flush = 0; } } -- cgit v1.2.3