From b33c1ae22f15cd862631fabf827fac52e1eb79bd Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Thu, 27 Jun 2024 00:13:37 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20bind=20byte=20format=20converte?= =?UTF-8?q?d=20index=20buffers=20at=20requested=20index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Ryujinx.Graphics.Metal/EncoderStateManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs b/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs index 5f1aab365..79189d0b9 100644 --- a/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs +++ b/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs @@ -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