diff options
-rw-r--r-- | present/present.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |