mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-01 03:32:02 +00:00
Fix shader code comparison method
This commit is contained in:
parent
d0c7732fe2
commit
65428f5842
1 changed files with 2 additions and 2 deletions
|
@ -172,9 +172,9 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
|||
|
||||
private bool IsShaderDifferent(CachedShader shader, ulong gpuVa)
|
||||
{
|
||||
for (int offset = 0; offset < shader.Code.Length; offset += 4)
|
||||
for (int index = 0; index < shader.Code.Length; index++)
|
||||
{
|
||||
if (_context.MemoryAccessor.ReadInt32(gpuVa + (ulong)offset) != shader.Code[offset / 4])
|
||||
if (_context.MemoryAccessor.ReadInt32(gpuVa + (ulong)index * 4) != shader.Code[index])
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue