From c948d7f4369c4ad517c8afb4126bc5dd55f6068b Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 18 Jul 2021 04:03:26 +0100 Subject: [PATCH] PostProcessing: fix link error when switching shaders Switching to a post-processing shader with different configuration options will change the UBO, so we need to recompile the vertex shader as well. --- Source/Core/VideoCommon/PostProcessing.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/VideoCommon/PostProcessing.cpp b/Source/Core/VideoCommon/PostProcessing.cpp index 6cf1397416..8d0b758c6f 100644 --- a/Source/Core/VideoCommon/PostProcessing.cpp +++ b/Source/Core/VideoCommon/PostProcessing.cpp @@ -400,6 +400,8 @@ void PostProcessing::RecompileShader() m_pixel_shader.reset(); if (!CompilePixelShader()) return; + if (!CompileVertexShader()) + return; CompilePipeline(); }