diff options
Diffstat (limited to 'video.cpp')
-rw-r--r-- | video.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1275,7 +1275,7 @@ void Device_Vk::init_internal() { swapchain.init(*app, this); create_terminators(); depth = 0; - create_depth(app->w, app->h); + create_depth(swapchain.size.width, swapchain.size.height); } void Device_Vk::create_terminators() { @@ -1348,7 +1348,7 @@ void Device_Vk::on_resize_internal(int w, int h) { get_swap_cap(this, phys_dev, surf, &swap_cap); swapchain.recreate(*app, this); create_terminators(); - create_depth(w, h); + create_depth(swapchain.size.width, swapchain.size.height); } Renderpass_Vk& Device_Vk::create_rpo(const Rpo_Key& k) { |