From bd55100d56f150d03a07dda4a05f0d3a361b4a00 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 14 Oct 2023 15:02:28 -0300 Subject: [PATCH] metal: fix compile error --- src/modules/graphics/metal/Shader.mm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/graphics/metal/Shader.mm b/src/modules/graphics/metal/Shader.mm index 5929e73ab..c9ffb8f21 100644 --- a/src/modules/graphics/metal/Shader.mm +++ b/src/modules/graphics/metal/Shader.mm @@ -1087,8 +1087,7 @@ id Shader::getCachedRenderPipeline(const RenderPipelineK MTLRenderPipelineColorAttachmentDescriptor *attachment = desc.colorAttachments[i]; - bool isSRGB = false; - auto formatdesc = Metal::convertPixelFormat(device, format, isSRGB); + auto formatdesc = Metal::convertPixelFormat(device, format); attachment.pixelFormat = formatdesc.format; if (key.blend.enable) @@ -1124,8 +1123,7 @@ id Shader::getCachedRenderPipeline(const RenderPipelineK { // We already don't really support metal on older systems, this just // silences a compiler warning about it. - bool isSRGB = false; - auto formatdesc = Metal::convertPixelFormat(device, dsformat, isSRGB); + auto formatdesc = Metal::convertPixelFormat(device, dsformat); if (isPixelFormatDepth(dsformat)) desc.depthAttachmentPixelFormat = formatdesc.format; if (isPixelFormatStencil(dsformat))