mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-24 21:57:44 +02:00
Always declare even in bad state on GLSL
This commit is contained in:
parent
27b5251bd3
commit
27b042ca16
1 changed files with 2 additions and 6 deletions
|
@ -512,13 +512,9 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
|||
if (context.Definitions.Stage == ShaderStage.Fragment && context.Definitions.DualSourceBlend)
|
||||
{
|
||||
IoDefinition firstOutput = outputs.ElementAtOrDefault(0);
|
||||
IoDefinition secondOutput = outputs.ElementAtOrDefault(1);
|
||||
|
||||
if (firstOutput.Location + 1 == secondOutput.Location)
|
||||
{
|
||||
DeclareOutputDualSourceBlendAttribute(context, firstOutput.Location);
|
||||
outputs = outputs.Skip(2);
|
||||
}
|
||||
DeclareOutputDualSourceBlendAttribute(context, firstOutput.Location);
|
||||
outputs = outputs.Skip(2);
|
||||
}
|
||||
|
||||
foreach (IoDefinition ioDefinition in outputs)
|
||||
|
|
Loading…
Add table
Reference in a new issue