Browse Source

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

Fix wrong error message when graphics pipeline creation fails
Yuri Sizov 1 năm trước cách đây
mục cha
commit
7d03a22329
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/vulkan/rendering_device_driver_vulkan.cpp

+ 1 - 1
drivers/vulkan/rendering_device_driver_vulkan.cpp

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