mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-22 01:20:26 +00:00
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
1 changed files with 6 additions and 0 deletions
|
|
@ -678,6 +678,12 @@ CompositeExtensionInit (void)
|
||||||
ExtensionEntry *extEntry;
|
ExtensionEntry *extEntry;
|
||||||
int s;
|
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);
|
CompositeClientWindowType = CreateNewResourceType (FreeCompositeClientWindow);
|
||||||
if (!CompositeClientWindowType)
|
if (!CompositeClientWindowType)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue