mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-06 07:06:10 +00:00
c/main: Only allocate one image for static swapchains
This commit is contained in:
parent
e8e7493679
commit
aa0523e535
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue