Remove debug check

This commit is contained in:
hodasemi 2023-12-04 08:17:21 +01:00
parent 54ab11e461
commit f08c63b0c2

View file

@ -1750,13 +1750,6 @@ impl Device {
begin_info: &VkCommandBufferBeginInfo, begin_info: &VkCommandBufferBeginInfo,
) -> Result<()> { ) -> Result<()> {
unsafe { unsafe {
if std::mem::transmute::<PFN_vkBeginCommandBuffer, *const c_void>(
self.device_functions.vkBeginCommandBuffer,
) == ptr::null()
{
return Err(anyhow::anyhow!("vkBeginCommandBuffer is null"));
}
let result = self let result = self
.device_functions .device_functions
.vkBeginCommandBuffer(command_buffer, begin_info); .vkBeginCommandBuffer(command_buffer, begin_info);