aboutsummaryrefslogtreecommitdiff
path: root/cube/cube.cpp
diff options
context:
space:
mode:
authorTony-LunarG <tony@lunarg.com>2023-05-25 15:02:12 -0600
committerTony Barbour <tony@lunarg.com>2023-05-25 15:33:35 -0600
commitfedb3b8ed39899eeb7c549cd50a380132b9dc948 (patch)
tree583b79190e1b434f716f865147bcceb353a095b9 /cube/cube.cpp
parent9aafa3cf1a72170cedab37073dcc184a6428469b (diff)
downloadusermoji-fedb3b8ed39899eeb7c549cd50a380132b9dc948.tar.xz
vkcubepp: Fix cmd buffer/pool leak
Diffstat (limited to 'cube/cube.cpp')
-rw-r--r--cube/cube.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp
index def474b2..1e7d48cf 100644
--- a/cube/cube.cpp
+++ b/cube/cube.cpp
@@ -1553,13 +1553,12 @@ void Demo::init_vk_swapchain() {
}
void Demo::prepare() {
- prepare_init_cmd();
-
prepare_buffers();
if (is_minimized) {
prepared = false;
return;
}
+ prepare_init_cmd();
prepare_depth();
prepare_textures();
prepare_cube_data_buffers();