summaryrefslogtreecommitdiff
path: root/video.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'video.cpp')
-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) {