[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg-devel
Subject: [PATCH 6/6] present: Set abort_flip on the pending_flip when destroying the Window
From: Chris Wilson <chris () chris-wilson ! co ! uk>
Date: 2014-05-28 7:14:04
Message-ID: 1401261244-25449-6-git-send-email-chris () chris-wilson ! co ! uk
[Download RAW message or body]
Currently, the code asserts that the abort_flip is set on the
pending_flip when the Window is closed. Presumably, it is expected that
a configure event happens before it actually closes causing the pending
present flip to be aborted. In practice, I see the assert.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
present/present_screen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/present/present_screen.c b/present/present_screen.c
index 0a525a8..a04317f 100644
--- a/present/present_screen.c
+++ b/present/present_screen.c
@@ -94,7 +94,7 @@ present_clear_window_flip(WindowPtr window)
present_vblank_ptr flip_pending = screen_priv->flip_pending;
if (flip_pending && flip_pending->window == window) {
- assert (flip_pending->abort_flip);
+ flip_pending->abort_flip = TRUE;
flip_pending->window = NULL;
}
if (screen_priv->flip_window == window)
--
2.0.0.rc2
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic