diff options
| author | Jules Blok <jules.blok@gmail.com> | 2016-11-14 14:14:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-14 14:14:45 +0100 |
| commit | 017ab71fcff8874a23e175b603511814a38ad432 (patch) | |
| tree | 9b59c2fe2a407f467f7f56182c4527303007c94a /Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp | |
| parent | 6a2e1e9986c859316ca28a33f9ba584f162eac73 (diff) | |
| parent | bd67adb36200d0453768177c63498c7c6f53ce96 (diff) | |
Merge pull request #4451 from stenzek/vulkan-poke
Vulkan: Fix crash on EFB poke
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp b/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp index c3fc47cb5e..17dc9253cd 100644 --- a/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp +++ b/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp @@ -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; |
