Don't fail compScreenInit if the driver added its own alternate visuals.

This commit is contained in:
Aaron Plattner 2007-07-31 14:23:58 -07:00
parent 722d73a0ef
commit 951c058e78
1 changed files with 2 additions and 1 deletions

View File

@ -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)