Skip to content

Commit

Permalink
Fix RawRecordingCommandBuffer::end being safe to call
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0246 committed Dec 13, 2023
1 parent aaf6554 commit cf813ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulkano/src/command_buffer/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl RawRecordingCommandBuffer {

/// Ends the recording, returning a command buffer which can be submitted.
#[inline]
pub fn end(self) -> Result<RawCommandBuffer, VulkanError> {
pub unsafe fn end(self) -> Result<RawCommandBuffer, VulkanError> {
unsafe {
let fns = self.device().fns();
(fns.v1_0.end_command_buffer)(self.handle())
Expand Down

0 comments on commit cf813ad

Please sign in to comment.