summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-29 14:56:40 +1100
committerquou <quou@disroot.org>2024-12-29 14:56:40 +1100
commitfd1811ee45177420b26ddb9a98607bcd7d9c104c (patch)
treecfe449bce7de95ed5e12ef82ef0d062aca4555ca
parent96c459ca2f52cf2c5bec269d0f30e01d21bc916b (diff)
correct the default depth buffer size
-rw-r--r--video.cpp4
1 files changed, 2 insertions, 2 deletions
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) {