From 4aa77378de69efdc10bced6ba650b0ebff50c112 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 26 Nov 2013 12:06:57 -0800 Subject: [PATCH] present: Clear target_crtc if driver lacks Present support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the driver doesn't have the necessary hooks for Present, then the target_crtc needs to be set to NULL to make sure the extension uses the present_fake code. Signed-off-by: Keith Packard Tested-by: Fredrik Höglund Reviewed-by: Adam Jackson --- present/present.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/present/present.c b/present/present.c index 76e12ed5d..3fd5e8bb1 100644 --- a/present/present.c +++ b/present/present.c @@ -594,7 +594,9 @@ present_pixmap(WindowPtr window, if (!window_priv) return BadAlloc; - if (!target_crtc) { + if (!screen_priv || !screen_priv->info) + target_crtc = NULL; + else if (!target_crtc) { /* Update the CRTC if we have a pixmap or we don't have a CRTC */ if (!pixmap)