Fix separate bindless sampler at offset 0 (#2360)

This commit is contained in:
gdkchan
2021-06-20 15:48:12 -03:00
committed by GitHub
parent afd3153ca4
commit 65fee49e8a
2 changed files with 2 additions and 2 deletions

View File

@ -473,7 +473,7 @@ namespace Ryujinx.Graphics.Gpu.Image
? bufferManager.GetComputeUniformBufferAddress(samplerBufferIndex)
: bufferManager.GetGraphicsUniformBufferAddress(stageIndex, samplerBufferIndex);
handle |= _context.PhysicalMemory.Read<int>(samplerBufferAddress + (ulong)((uint)wordOffset >> HandleHigh) * 4);
handle |= _context.PhysicalMemory.Read<int>(samplerBufferAddress + (ulong)((wordOffset >> HandleHigh) - 1) * 4);
}
return handle;