From abffa93a72bda3d13db4fe39f18bd9d176d87dc6 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 10 Apr 2022 20:51:20 +0200 Subject: [PATCH] MoltenVK: Fix pixel shader typo --- Source/Core/VideoCommon/PixelShaderGen.cpp | 2 +- Source/Core/VideoCommon/UberShaderPixel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index ee95d25187..837001c118 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -966,7 +966,7 @@ ShaderCode GeneratePixelShaderCode(APIType api_type, const ShaderHostConfig& hos { // Metal doesn't support a single unified variable for both input and output, // so when using framebuffer fetch, we declare the input separately below. - out.Write("FRAGMENT_OUTPUT_LOCATION(0) out vec4 {}};\n", + out.Write("FRAGMENT_OUTPUT_LOCATION(0) out vec4 {};\n", use_framebuffer_fetch ? "real_ocol0" : "ocol0"); } diff --git a/Source/Core/VideoCommon/UberShaderPixel.cpp b/Source/Core/VideoCommon/UberShaderPixel.cpp index abac319afa..7bb4eb4210 100644 --- a/Source/Core/VideoCommon/UberShaderPixel.cpp +++ b/Source/Core/VideoCommon/UberShaderPixel.cpp @@ -89,7 +89,7 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config, { // Metal doesn't support a single unified variable for both input and output, // so when using framebuffer fetch, we declare the input separately below. - out.Write("FRAGMENT_OUTPUT_LOCATION(0) out vec4 {}};\n", + out.Write("FRAGMENT_OUTPUT_LOCATION(0) out vec4 {};\n", use_framebuffer_fetch ? "real_ocol0" : "ocol0"); }