mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-17 19:36:40 +00:00
Always declare even in bad state on GLSL
This commit is contained in:
parent
72616a3ea9
commit
21ad6d4a0a
1 changed files with 2 additions and 6 deletions
|
@ -512,14 +512,10 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
||||||
if (context.Definitions.Stage == ShaderStage.Fragment && context.Definitions.DualSourceBlend)
|
if (context.Definitions.Stage == ShaderStage.Fragment && context.Definitions.DualSourceBlend)
|
||||||
{
|
{
|
||||||
IoDefinition firstOutput = outputs.ElementAtOrDefault(0);
|
IoDefinition firstOutput = outputs.ElementAtOrDefault(0);
|
||||||
IoDefinition secondOutput = outputs.ElementAtOrDefault(1);
|
|
||||||
|
|
||||||
if (firstOutput.Location + 1 == secondOutput.Location)
|
|
||||||
{
|
|
||||||
DeclareOutputDualSourceBlendAttribute(context, firstOutput.Location);
|
DeclareOutputDualSourceBlendAttribute(context, firstOutput.Location);
|
||||||
outputs = outputs.Skip(2);
|
outputs = outputs.Skip(2);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
foreach (var ioDefinition in outputs)
|
foreach (var ioDefinition in outputs)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue