From 951c058e7800308f7c472e77178c14400f45c1b3 Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Tue, 31 Jul 2007 14:23:58 -0700 Subject: Don't fail compScreenInit if the driver added its own alternate visuals. --- composite/compinit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'composite') diff --git a/composite/compinit.c b/composite/compinit.c index 8ce08b490..630f1042c 100644 --- a/composite/compinit.c +++ b/composite/compinit.c @@ -239,7 +239,8 @@ compAddAlternateVisual(ScreenPtr pScreen, CompScreenPtr cs, depth = compFindVisuallessDepth (pScreen, alt->depth); if (!depth) - return FALSE; + /* alt->depth doesn't exist or already has alternate visuals. */ + return TRUE; pPictFormat = PictureMatchFormat (pScreen, alt->depth, alt->format); if (!pPictFormat) -- cgit v1.2.3