Skip to content
Permalink
Browse files
Merge pull request #9881 from blaahaj/postprocessing-fix
PostProcessing: Fix OpenGL UBO linking with configuration options
  • Loading branch information
stenzek committed Jul 14, 2021
2 parents fd7c4b2 + debeb09 commit 9b17805
Showing 1 changed file with 4 additions and 1 deletion.
@@ -385,7 +385,10 @@ std::vector<std::string> PostProcessing::GetPassiveShaderList()
bool PostProcessing::Initialize(AbstractTextureFormat format)
{
m_framebuffer_format = format;
if (!CompileVertexShader() || !CompilePixelShader() || !CompilePipeline())
// CompilePixelShader must be run first if configuration options are used.
// Otherwise the UBO has a different member list between vertex and pixel
// shaders, which is a link error.
if (!CompilePixelShader() || !CompileVertexShader() || !CompilePipeline())
return false;

return true;

0 comments on commit 9b17805

Please sign in to comment.