From b01903ccc7e6337d55ef5899abc5b979c79bfb10 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sun, 5 Jun 2016 12:55:19 -0500 Subject: [PATCH] Set basePipelineIndex to -1 instead of 0 to indicate invalid. --- src/xenia/gpu/vulkan/pipeline_cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/gpu/vulkan/pipeline_cache.cc b/src/xenia/gpu/vulkan/pipeline_cache.cc index e80cb4675..cce9e0d7f 100644 --- a/src/xenia/gpu/vulkan/pipeline_cache.cc +++ b/src/xenia/gpu/vulkan/pipeline_cache.cc @@ -259,7 +259,7 @@ VkPipeline PipelineCache::GetPipeline(const RenderState* render_state, pipeline_info.renderPass = render_state->render_pass_handle; pipeline_info.subpass = 0; pipeline_info.basePipelineHandle = nullptr; - pipeline_info.basePipelineIndex = 0; + pipeline_info.basePipelineIndex = -1; VkPipeline pipeline = nullptr; auto err = vkCreateGraphicsPipelines(device_, pipeline_cache_, 1, &pipeline_info, nullptr, &pipeline);