diff options
| author | Tony Barbour <tony@LunarG.com> | 2017-06-14 11:59:55 -0600 |
|---|---|---|
| committer | Tony Barbour <tony@LunarG.com> | 2017-06-14 12:01:55 -0600 |
| commit | 3eafe1fffa06e501ea00beaeb4fcedb76e2cf8ba (patch) | |
| tree | 7e4cbe965db19ea04d376032de357a9ad3534cfd | |
| parent | 7e0b3b3fc6d1054edaeef950cda9ee201648335e (diff) | |
| download | usermoji-3eafe1fffa06e501ea00beaeb4fcedb76e2cf8ba.tar.xz | |
demos: Modify correct uniform buffer for next frame
Change-Id: I78b8f5ef63fb2c14a3ce431f3e6f6a809e65972f
| -rw-r--r-- | demos/cube.c | 4 |
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: |
