From fd1811ee45177420b26ddb9a98607bcd7d9c104c Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 29 Dec 2024 14:56:40 +1100 Subject: correct the default depth buffer size --- video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video.cpp') diff --git a/video.cpp b/video.cpp index 9cd4874..f244e57 100644 --- a/video.cpp +++ b/video.cpp @@ -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) { -- cgit v1.2.3-54-g00ecf