Merge pull request #9910 from Tilka/postprocess
PostProcessing: fix shader compilation failures
This commit is contained in:
commit
6e7698a354
|
@ -53,7 +53,7 @@ void main()
|
||||||
float offsetAdd;
|
float offsetAdd;
|
||||||
|
|
||||||
// layer0 = left eye, layer1 = right eye
|
// layer0 = left eye, layer1 = right eye
|
||||||
if (layer == 1)
|
if (src_layer == 1)
|
||||||
{
|
{
|
||||||
offsetAdd = stereoOffset;
|
offsetAdd = stereoOffset;
|
||||||
}
|
}
|
||||||
|
|
|
@ -400,6 +400,8 @@ void PostProcessing::RecompileShader()
|
||||||
m_pixel_shader.reset();
|
m_pixel_shader.reset();
|
||||||
if (!CompilePixelShader())
|
if (!CompilePixelShader())
|
||||||
return;
|
return;
|
||||||
|
if (!CompileVertexShader())
|
||||||
|
return;
|
||||||
|
|
||||||
CompilePipeline();
|
CompilePipeline();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue