Fix wrong error message when graphics pipeline creation fails
This commit is contained in:
parent
9d1cbab1c4
commit
e729d511df
|
@ -2920,7 +2920,7 @@ RDD::PipelineID RenderingDeviceDriverVulkan::render_pipeline_create(
|
|||
|
||||
VkPipeline vk_pipeline = VK_NULL_HANDLE;
|
||||
VkResult err = vkCreateGraphicsPipelines(vk_device, pipelines_cache.vk_cache, 1, &pipeline_create_info, nullptr, &vk_pipeline);
|
||||
ERR_FAIL_COND_V_MSG(err, PipelineID(), "vkCreateComputePipelines failed with error " + itos(err) + ".");
|
||||
ERR_FAIL_COND_V_MSG(err, PipelineID(), "vkCreateGraphicsPipelines failed with error " + itos(err) + ".");
|
||||
|
||||
return PipelineID(vk_pipeline);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue