mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
c/main: Do not create images when initing swapchain.
This commit is contained in:
parent
1521953813
commit
5d605c7b3f
|
@ -1263,25 +1263,14 @@ compositor_init_window_post_vulkan(struct comp_compositor *c)
|
||||||
static bool
|
static bool
|
||||||
compositor_init_swapchain(struct comp_compositor *c)
|
compositor_init_swapchain(struct comp_compositor *c)
|
||||||
{
|
{
|
||||||
if (!comp_target_init_post_vulkan(c->target, //
|
if (comp_target_init_post_vulkan(c->target, //
|
||||||
c->settings.preferred.width, //
|
c->settings.preferred.width, //
|
||||||
c->settings.preferred.height)) {
|
c->settings.preferred.height)) {
|
||||||
COMP_ERROR(c, "Window init_swapchain failed!");
|
return true;
|
||||||
goto err_destroy;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
comp_target_create_images( //
|
COMP_ERROR(c, "Window init_swapchain failed!");
|
||||||
c->target, //
|
|
||||||
c->settings.preferred.width, //
|
|
||||||
c->settings.preferred.height, //
|
|
||||||
c->settings.color_format, //
|
|
||||||
c->settings.color_space, //
|
|
||||||
c->settings.present_mode); //
|
|
||||||
|
|
||||||
return true;
|
|
||||||
|
|
||||||
// Error path.
|
|
||||||
err_destroy:
|
|
||||||
comp_target_destroy(&c->target);
|
comp_target_destroy(&c->target);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue