From ee18d548c96066992d0764ab8c81acefe6fa6ec6 Mon Sep 17 00:00:00 2001 From: DrChat Date: Tue, 8 Aug 2017 00:11:08 -0500 Subject: [PATCH] Vulkan: Do not bind a NULL pipeline even if a full update is requested. --- src/xenia/gpu/vulkan/vulkan_command_processor.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xenia/gpu/vulkan/vulkan_command_processor.cc b/src/xenia/gpu/vulkan/vulkan_command_processor.cc index 3a4bc7f47..571bacfb2 100644 --- a/src/xenia/gpu/vulkan/vulkan_command_processor.cc +++ b/src/xenia/gpu/vulkan/vulkan_command_processor.cc @@ -617,12 +617,12 @@ bool VulkanCommandProcessor::IssueDraw(PrimitiveType primitive_type, auto pipeline_status = pipeline_cache_->ConfigurePipeline( command_buffer, current_render_state_, vertex_shader, pixel_shader, primitive_type, &pipeline); - if (pipeline_status == PipelineCache::UpdateStatus::kMismatch || - full_update) { + if (pipeline_status == PipelineCache::UpdateStatus::kError) { + return false; + } else if (pipeline_status == PipelineCache::UpdateStatus::kMismatch || + full_update) { vkCmdBindPipeline(command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline); - } else if (pipeline_status == PipelineCache::UpdateStatus::kError) { - return false; } pipeline_cache_->SetDynamicState(command_buffer, full_update);