From 04539fdf02690675683622545a0d763861b9ec69 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Mon, 24 Mar 2025 20:05:20 -0400 Subject: [PATCH] Always emit output struct init Signed-off-by: Isaac Marovitz --- XenosRecomp/shader_recompiler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/XenosRecomp/shader_recompiler.cpp b/XenosRecomp/shader_recompiler.cpp index c20d753..77d65ce 100644 --- a/XenosRecomp/shader_recompiler.cpp +++ b/XenosRecomp/shader_recompiler.cpp @@ -1617,8 +1617,6 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi out += ")\n"; out += "{\n"; -#ifdef UNLEASHED_RECOMP - std::string outputName = isPixelShader ? "PixelShaderOutput" : "Interpolators"; out += "#ifdef __air__\n"; @@ -1627,6 +1625,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi println("\t{0} output = ({0})0;", outputName); out += "#endif\n"; +#ifdef UNLEASHED_RECOMP if (hasMtxProjection) { specConstantsMask |= SPEC_CONSTANT_REVERSE_Z;