Explorar o código

Fix wrong error message when graphics pipeline creation fails

warriormaster12 hai 1 ano
pai
achega
e729d511df
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 }