Vulkan: Fix crash bug when post processing shaders failed to compile.

This commit is contained in:
Henrik Rydgård 2017-12-01 13:44:45 +01:00
parent f8b70fe185
commit d2fe42ea90

View file

@ -689,10 +689,10 @@ void FramebufferManagerVulkan::CompilePostShader() {
if (postVs_ && postFs_) {
pipelinePostShader_ = vulkan2D_->GetPipeline(backbufferRP, postVs_, postFs_, true, Vulkan2D::VK2DDepthStencilMode::NONE);
usePostShader_ = true;
} else {
ELOG("Failed to compile.");
pipelinePostShader_ = nullptr;
usePostShader_ = false;
}
usePostShader_ = true;
}