aboutsummaryrefslogtreecommitdiff
path: root/demos/cube.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/cube.c')
-rw-r--r--demos/cube.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/cube.c b/demos/cube.c
index a0c6dde6..ba6d53e5 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -957,8 +957,6 @@ static void demo_draw(struct demo *demo) {
vkWaitForFences(demo->device, 1, &demo->fences[demo->frame_index], VK_TRUE, UINT64_MAX);
vkResetFences(demo->device, 1, &demo->fences[demo->frame_index]);
- demo_update_data_buffer(demo);
-
err = !(VK_SUCCESS);
while (err != VK_SUCCESS) {
// Get the index of the next available swapchain image:
@@ -979,6 +977,8 @@ static void demo_draw(struct demo *demo) {
}
}
+ demo_update_data_buffer(demo);
+
if (demo->VK_GOOGLE_display_timing_enabled) {
// Look at what happened to previous presents, and make appropriate
// adjustments in timing: