Don’t bind byte format converted index buffers at requested index

This commit is contained in:
Isaac Marovitz 2024-06-27 00:13:37 +01:00 committed by Isaac Marovitz
parent 242fcc2481
commit b33c1ae22f

View file

@ -378,7 +378,7 @@ namespace Ryujinx.Graphics.Metal
if (type == GAL.IndexType.UByte)
{
_currentState.IndexType = MTLIndexType.UInt16;
_currentState.IndexBufferOffset = (ulong)buffer.Offset;
_currentState.IndexBufferOffset = 0;
_currentState.IndexBuffer = _bufferManager.GetBufferI8ToI16(_pipeline.Cbs, buffer.Handle, buffer.Offset, buffer.Size);
}
else