summaryrefslogtreecommitdiff
path: root/composite/compinit.c
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2007-07-31 14:23:58 -0700
committerAaron Plattner <aplattner@nvidia.com>2007-07-31 14:23:58 -0700
commit951c058e7800308f7c472e77178c14400f45c1b3 (patch)
treeaf74d955d4e33043708cf882d1e7c418a4121e67 /composite/compinit.c
parent722d73a0ef54c2ebd8ef38c4a6afa0e7c5aa3e30 (diff)
Don't fail compScreenInit if the driver added its own alternate visuals.
Diffstat (limited to 'composite/compinit.c')
-rw-r--r--composite/compinit.c3
1 files changed, 2 insertions, 1 deletions
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)