Refuse to initialize Composite if Render is not present.

Composite relies on the presence of Render, in particular for the automatic
compositing.
This commit is contained in:
Eric Anholt 2007-03-26 15:55:38 -07:00
parent 6ed08949af
commit 8afc7e2eb3
1 changed files with 6 additions and 0 deletions

View File

@ -678,6 +678,12 @@ CompositeExtensionInit (void)
ExtensionEntry *extEntry;
int s;
/* Ensure that Render is initialized on all screens. */
for (s = 0; s < screenInfo.numScreens; s++) {
if (GetPictureScreenIfSet(screenInfo.screens[s]) == NULL)
return;
}
CompositeClientWindowType = CreateNewResourceType (FreeCompositeClientWindow);
if (!CompositeClientWindowType)
return;