Merge pull request #9910 from Tilka/postprocess

PostProcessing: fix shader compilation failures
This commit is contained in:
Mai M 2021-07-18 13:58:16 -04:00 committed by GitHub
commit 6e7698a354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,7 @@ void main()
float offsetAdd;
// layer0 = left eye, layer1 = right eye
if (layer == 1)
if (src_layer == 1)
{
offsetAdd = stereoOffset;
}

View File

@ -400,6 +400,8 @@ void PostProcessing::RecompileShader()
m_pixel_shader.reset();
if (!CompilePixelShader())
return;
if (!CompileVertexShader())
return;
CompilePipeline();
}