Skip to content

Commit

Permalink
Fix validation errors in timeline_semaphores sample (#927)
Browse files Browse the repository at this point in the history
* Fix validation errors in timeline_semaphores sample

The command buffer was being implicitly reset, but wasn't resettable.

* Review feedback addressed

Used a much simpler approach to resolve the error
  • Loading branch information
gary-sweet authored Feb 26, 2024
1 parent d378200 commit ec6d636
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/extensions/timeline_semaphore/timeline_semaphore.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2021-2023, Arm Limited and Contributors
/* Copyright (c) 2021-2024, Arm Limited and Contributors
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down Expand Up @@ -643,6 +643,7 @@ void TimelineSemaphore::render(float delta_time)
viewport.height = viewport.width;
}

recreate_current_command_buffer();
auto cmd = draw_cmd_buffers[current_buffer];
auto begin_info = vkb::initializers::command_buffer_begin_info();
begin_info.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT;
Expand Down

0 comments on commit ec6d636

Please sign in to comment.