diff --git a/src/xrt/compositor/main/comp_swapchain.c b/src/xrt/compositor/main/comp_swapchain.c index f866165f9..22875b4fd 100644 --- a/src/xrt/compositor/main/comp_swapchain.c +++ b/src/xrt/compositor/main/comp_swapchain.c @@ -224,6 +224,10 @@ comp_swapchain_create(struct xrt_compositor *xc, VkResult ret; + if ((create & XRT_SWAPCHAIN_CREATE_STATIC_IMAGE) != 0) { + num_images = 1; + } + struct comp_swapchain *sc = U_TYPED_CALLOC(struct comp_swapchain); sc->base.base.destroy = swapchain_destroy; sc->base.base.acquire_image = swapchain_acquire_image;