Merge pull request #4451 from stenzek/vulkan-poke

Vulkan: Fix crash on EFB poke
This commit is contained in:
Jules Blok 2016-11-14 14:14:45 +01:00 committed by GitHub
commit 017ab71fcf
1 changed files with 7 additions and 0 deletions

View File

@ -103,6 +103,12 @@ bool FramebufferManager::Initialize()
return false;
}
if (!CompilePokeShaders())
{
PanicAlert("Failed to compile poke shaders");
return false;
}
return true;
}
@ -1175,6 +1181,7 @@ void FramebufferManager::DrawPokeVertices(const EFBPokeVertex* vertices, size_t
pipeline_info.ps = m_poke_fragment_shader;
pipeline_info.render_pass = m_efb_load_render_pass;
pipeline_info.rasterization_state.bits = Util::GetNoCullRasterizationState().bits;
pipeline_info.rasterization_state.samples = m_efb_samples;
pipeline_info.depth_stencil_state.bits = Util::GetNoDepthTestingDepthStencilState().bits;
pipeline_info.blend_state.bits = Util::GetNoBlendingBlendState().bits;
pipeline_info.blend_state.write_mask = 0;