mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-03 21:22:25 -07:00
Don’t bind byte format converted index buffers at requested index
This commit is contained in:
committed by
Isaac Marovitz
parent
242fcc2481
commit
b33c1ae22f
@@ -378,7 +378,7 @@ namespace Ryujinx.Graphics.Metal
|
|||||||
if (type == GAL.IndexType.UByte)
|
if (type == GAL.IndexType.UByte)
|
||||||
{
|
{
|
||||||
_currentState.IndexType = MTLIndexType.UInt16;
|
_currentState.IndexType = MTLIndexType.UInt16;
|
||||||
_currentState.IndexBufferOffset = (ulong)buffer.Offset;
|
_currentState.IndexBufferOffset = 0;
|
||||||
_currentState.IndexBuffer = _bufferManager.GetBufferI8ToI16(_pipeline.Cbs, buffer.Handle, buffer.Offset, buffer.Size);
|
_currentState.IndexBuffer = _bufferManager.GetBufferI8ToI16(_pipeline.Cbs, buffer.Handle, buffer.Offset, buffer.Size);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user