mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 11:50:06 +01:00
Bug #8937: Extension setup functions not called on server resets
(cherry picked from 5e946dd853 commit)
This commit is contained in:
parent
e6778fee47
commit
c9ff47033e
1 changed files with 10 additions and 0 deletions
|
|
@ -754,6 +754,16 @@ InitExtensions(argc, argv)
|
|||
/* Sort the extensions according the init dependencies. */
|
||||
LoaderSortExtensions();
|
||||
listInitialised = TRUE;
|
||||
} else {
|
||||
/* Call the setup functions on subsequent server resets as well */
|
||||
for (i = 0; ExtensionModuleList[i].name != NULL; i++) {
|
||||
ext = &ExtensionModuleList[i];
|
||||
if (ext->setupFunc != NULL &&
|
||||
(ext->disablePtr == NULL ||
|
||||
(ext->disablePtr != NULL && !*ext->disablePtr))) {
|
||||
(ext->setupFunc)();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; ExtensionModuleList[i].name != NULL; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue