mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +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
|
||||
compositor_init_swapchain(struct comp_compositor *c)
|
||||
{
|
||||
if (!comp_target_init_post_vulkan(c->target, //
|
||||
c->settings.preferred.width, //
|
||||
c->settings.preferred.height)) {
|
||||
COMP_ERROR(c, "Window init_swapchain failed!");
|
||||
goto err_destroy;
|
||||
if (comp_target_init_post_vulkan(c->target, //
|
||||
c->settings.preferred.width, //
|
||||
c->settings.preferred.height)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
comp_target_create_images( //
|
||||
c->target, //
|
||||
c->settings.preferred.width, //
|
||||
c->settings.preferred.height, //
|
||||
c->settings.color_format, //
|
||||
c->settings.color_space, //
|
||||
c->settings.present_mode); //
|
||||
COMP_ERROR(c, "Window init_swapchain failed!");
|
||||
|
||||
return true;
|
||||
|
||||
// Error path.
|
||||
err_destroy:
|
||||
comp_target_destroy(&c->target);
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue