vk: don't unwrap create_graphics_pipelines
This commit is contained in:
parent
0bbf124b54
commit
4978e1f24f
|
@ -300,8 +300,7 @@ impl VulkanGraphicsPipeline {
|
||||||
// panic_safety: if this is successful this should return 1 pipelines.
|
// panic_safety: if this is successful this should return 1 pipelines.
|
||||||
device
|
device
|
||||||
.create_graphics_pipelines(*cache, &pipeline_info, None)
|
.create_graphics_pipelines(*cache, &pipeline_info, None)
|
||||||
.map_err(|e| e.1)
|
.map_err(|e| e.1)?[0]
|
||||||
.unwrap()[0]
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(pipeline)
|
Ok(pipeline)
|
||||||
|
|
Loading…
Reference in a new issue