mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
Fix NRE on gather operations with depth compare on macOS (#5832)
This commit is contained in:
parent
638be5f296
commit
33ba170315
1 changed files with 4 additions and 1 deletions
|
@ -766,7 +766,10 @@ namespace Ryujinx.Graphics.Shader.Instructions
|
|||
flags |= offset == TexOffset.Ptp ? TextureFlags.Offsets : TextureFlags.Offset;
|
||||
}
|
||||
|
||||
sourcesList.Add(Const((int)component));
|
||||
if (!hasDepthCompare)
|
||||
{
|
||||
sourcesList.Add(Const((int)component));
|
||||
}
|
||||
|
||||
Operand[] sources = sourcesList.ToArray();
|
||||
Operand[] dests = new Operand[BitOperations.PopCount((uint)componentMask)];
|
||||
|
|
Loading…
Reference in a new issue