1
0
mirror of https://github.com/godotengine/godot synced 2024-07-05 16:23:36 +00:00

Merge pull request #86405 from warriormaster12/pipeline-message-fix

Fix wrong error message when graphics pipeline creation fails
This commit is contained in:
Yuri Sizov 2023-12-22 17:20:15 +01:00
commit 7d03a22329

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