diff options
author | quou <quou@disroot.org> | 2024-12-29 14:56:40 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-29 14:56:40 +1100 |
commit | fd1811ee45177420b26ddb9a98607bcd7d9c104c (patch) | |
tree | cfe449bce7de95ed5e12ef82ef0d062aca4555ca /video.cpp | |
parent | 96c459ca2f52cf2c5bec269d0f30e01d21bc916b (diff) |
correct the default depth buffer size
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) { |