Skip to content

Commit

Permalink
End command buffer before discarding.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Jan 24, 2024
1 parent 250d2b2 commit 1809b0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vulkan/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,7 @@ void Device::submit_discard_nolock(CommandBufferHandle &cmd)
pool.signal_submitted(cmd->get_command_buffer());
#endif

cmd->end();
cmd.reset();
decrement_frame_counter_nolock();
}
Expand Down

0 comments on commit 1809b0d

Please sign in to comment.