mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-16 22:06:36 +00:00
Fix cubemap array length
Fixes crash in Sonic Frontiers
This commit is contained in:
parent
691b0de6e1
commit
d5502b02b1
@ -35,7 +35,14 @@ namespace Ryujinx.Graphics.Metal
|
||||
}
|
||||
else if (info.Target != Target.Cubemap)
|
||||
{
|
||||
descriptor.ArrayLength = (ulong)Info.Depth;
|
||||
if (info.Target == Target.CubemapArray)
|
||||
{
|
||||
descriptor.ArrayLength = (ulong)(Info.Depth / 6);
|
||||
}
|
||||
else
|
||||
{
|
||||
descriptor.ArrayLength = (ulong)Info.Depth;
|
||||
}
|
||||
}
|
||||
|
||||
MTLTextureSwizzleChannels swizzle = GetSwizzle(info, descriptor.PixelFormat);
|
||||
|
Loading…
Reference in New Issue
Block a user