Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9910 from Tilka/postprocess
PostProcessing: fix shader compilation failures
  • Loading branch information
lioncash committed Jul 18, 2021
2 parents 47d847d + eb4ed72 commit 6e7698a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Data/Sys/Shaders/lens_distortion.glsl
Expand Up @@ -53,7 +53,7 @@ void main()
float offsetAdd;

// layer0 = left eye, layer1 = right eye
if (layer == 1)
if (src_layer == 1)
{
offsetAdd = stereoOffset;
}
Expand Down
2 changes: 2 additions & 0 deletions Source/Core/VideoCommon/PostProcessing.cpp
Expand Up @@ -400,6 +400,8 @@ void PostProcessing::RecompileShader()
m_pixel_shader.reset();
if (!CompilePixelShader())
return;
if (!CompileVertexShader())
return;

CompilePipeline();
}
Expand Down

0 comments on commit 6e7698a

Please sign in to comment.