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:
parent
6ed08949af
commit
8afc7e2eb3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue