Fix wrong error message when graphics pipeline creation fails

This commit is contained in:
warriormaster12 2023-12-21 22:32:58 +02:00
parent 9d1cbab1c4
commit e729d511df
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}