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
parent f61f587d37
commit cb65fdf95a
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 1 additions and 1 deletions

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