Permalink
Browse files

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

  • Loading branch information...
hrydgard committed Dec 1, 2017
1 parent f8b70fe commit d2fe42ea907ced053df2ebde1de83009594822cb
Showing with 3 additions and 3 deletions.
  1. +3 −3 GPU/Vulkan/FramebufferVulkan.cpp
@@ -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;
}

0 comments on commit d2fe42e

Please sign in to comment.