vk: don't unwrap create_graphics_pipelines

This commit is contained in:
chyyran 2023-02-14 19:24:42 -05:00
parent 0bbf124b54
commit 4978e1f24f

View file

@ -300,8 +300,7 @@ impl VulkanGraphicsPipeline {
// panic_safety: if this is successful this should return 1 pipelines.
device
.create_graphics_pipelines(*cache, &pipeline_info, None)
.map_err(|e| e.1)
.unwrap()[0]
.map_err(|e| e.1)?[0]
};
Ok(pipeline)