mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Merge pull request #9881 from blaahaj/postprocessing-fix
PostProcessing: Fix OpenGL UBO linking with configuration options
This commit is contained in:
commit
9b17805be9
@ -385,7 +385,10 @@ std::vector<std::string> PostProcessing::GetPassiveShaderList()
|
|||||||
bool PostProcessing::Initialize(AbstractTextureFormat format)
|
bool PostProcessing::Initialize(AbstractTextureFormat format)
|
||||||
{
|
{
|
||||||
m_framebuffer_format = 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 false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user