Skip to content

Commit

Permalink
metal: fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Oct 14, 2023
1 parent 343d192 commit bd55100
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/graphics/metal/Shader.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1087,8 +1087,7 @@ static EShLanguage getGLSLangStage(ShaderStageType stage)

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)
Expand Down Expand Up @@ -1124,8 +1123,7 @@ static EShLanguage getGLSLangStage(ShaderStageType stage)
{
// 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))
Expand Down

0 comments on commit bd55100

Please sign in to comment.