From eb438b2381ee5e66280637348fdc052e277e09ba Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Wed, 9 Aug 2023 13:55:32 +0200 Subject: [PATCH] c/client: Actually use modified xrt_swapchain_create_info. Fixes GCC 13 warning [-Wunused-but-set-variable]. Use the modified copy of xrt_swapchain_create_info instead of the const pointer parameter. --- src/xrt/compositor/client/comp_gl_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/compositor/client/comp_gl_client.c b/src/xrt/compositor/client/comp_gl_client.c index 607bdfa63..8c958df7b 100644 --- a/src/xrt/compositor/client/comp_gl_client.c +++ b/src/xrt/compositor/client/comp_gl_client.c @@ -413,7 +413,7 @@ client_gl_compositor_get_swapchain_create_properties(struct xrt_compositor *xc, struct xrt_swapchain_create_info vkinfo = *info; vkinfo.format = vk_format; - return xrt_comp_get_swapchain_create_properties(&c->xcn->base, info, xsccp); + return xrt_comp_get_swapchain_create_properties(&c->xcn->base, &vkinfo, xsccp); } static xrt_result_t