mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
c/main: Init comp_base as early as possible
This commit is contained in:
parent
ea4c14c3aa
commit
875815b55b
|
@ -1133,6 +1133,9 @@ xrt_gfx_provider_create_system(struct xrt_device *xdev, struct xrt_system_compos
|
|||
|
||||
COMP_DEBUG(c, "Doing init %p", (void *)c);
|
||||
|
||||
// Do this as early as possible.
|
||||
comp_base_init(&c->base);
|
||||
|
||||
// Init the settings to default.
|
||||
comp_settings_init(&c->settings, xdev);
|
||||
|
||||
|
@ -1262,7 +1265,5 @@ xrt_gfx_provider_create_system(struct xrt_device *xdev, struct xrt_system_compos
|
|||
|
||||
c->state = COMP_STATE_READY;
|
||||
|
||||
comp_base_init(&c->base);
|
||||
|
||||
return comp_multi_create_system_compositor(&c->base.base, sys_info, out_xsysc);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue