mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-18 05:36:40 +00:00
Fix incorrect GPU GL blend func values (#1612)
This commit is contained in:
parent
d36c4bfba5
commit
329ba5b39b
2 changed files with 10 additions and 10 deletions
|
@ -9,9 +9,9 @@ namespace Ryujinx.Graphics.GAL
|
||||||
Maximum,
|
Maximum,
|
||||||
|
|
||||||
AddGl = 0x8006,
|
AddGl = 0x8006,
|
||||||
SubtractGl = 0x8007,
|
MinimumGl = 0x8007,
|
||||||
ReverseSubtractGl = 0x8008,
|
MaximumGl = 0x8008,
|
||||||
MinimumGl = 0x800a,
|
SubtractGl = 0x800a,
|
||||||
MaximumGl = 0x800b
|
ReverseSubtractGl = 0x800b
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,18 +104,18 @@ namespace Ryujinx.Graphics.OpenGL
|
||||||
case BlendOp.Add:
|
case BlendOp.Add:
|
||||||
case BlendOp.AddGl:
|
case BlendOp.AddGl:
|
||||||
return BlendEquationMode.FuncAdd;
|
return BlendEquationMode.FuncAdd;
|
||||||
case BlendOp.Subtract:
|
|
||||||
case BlendOp.SubtractGl:
|
|
||||||
return BlendEquationMode.FuncSubtract;
|
|
||||||
case BlendOp.ReverseSubtract:
|
|
||||||
case BlendOp.ReverseSubtractGl:
|
|
||||||
return BlendEquationMode.FuncReverseSubtract;
|
|
||||||
case BlendOp.Minimum:
|
case BlendOp.Minimum:
|
||||||
case BlendOp.MinimumGl:
|
case BlendOp.MinimumGl:
|
||||||
return BlendEquationMode.Min;
|
return BlendEquationMode.Min;
|
||||||
case BlendOp.Maximum:
|
case BlendOp.Maximum:
|
||||||
case BlendOp.MaximumGl:
|
case BlendOp.MaximumGl:
|
||||||
return BlendEquationMode.Max;
|
return BlendEquationMode.Max;
|
||||||
|
case BlendOp.Subtract:
|
||||||
|
case BlendOp.SubtractGl:
|
||||||
|
return BlendEquationMode.FuncSubtract;
|
||||||
|
case BlendOp.ReverseSubtract:
|
||||||
|
case BlendOp.ReverseSubtractGl:
|
||||||
|
return BlendEquationMode.FuncReverseSubtract;
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.Debug?.Print(LogClass.Gpu, $"Invalid {nameof(BlendOp)} enum value: {op}.");
|
Logger.Debug?.Print(LogClass.Gpu, $"Invalid {nameof(BlendOp)} enum value: {op}.");
|
||||||
|
|
Loading…
Reference in a new issue