metal: fix depth24stencil8 fallback on macOS

This commit is contained in:
Alex Szpakowski
2021-12-24 22:20:25 -04:00
parent 2868ede191
commit 759937a458
5 changed files with 18 additions and 13 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ Texture::Texture(love::graphics::Graphics *gfx, id<MTLDevice> device, const Sett
{
// We already don't really support metal on older systems, this just
// silences a compiler warning about it.
auto formatdesc = Metal::convertPixelFormat(format, sRGB);
auto formatdesc = Metal::convertPixelFormat(device, format, sRGB);
desc.pixelFormat = formatdesc.format;
if (formatdesc.swizzled)
desc.swizzle = formatdesc.swizzle;