mirror of https://github.com/Ryujinx/Ryujinx.git
Don’t bind byte format converted index buffers at requested index
This commit is contained in:
parent
f61f587d37
commit
cb65fdf95a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue