From 875815b55bdf633b05f33f8d53a2164e1147780b Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 20 May 2022 00:12:52 +0100 Subject: [PATCH] c/main: Init comp_base as early as possible --- src/xrt/compositor/main/comp_compositor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c index 5c7115ef6..011a00305 100644 --- a/src/xrt/compositor/main/comp_compositor.c +++ b/src/xrt/compositor/main/comp_compositor.c @@ -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); }