Skip to content

Commit 04539fd

Browse files
committed
Always emit output struct init
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent e851c0b commit 04539fd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

XenosRecomp/shader_recompiler.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,8 +1617,6 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
16171617
out += ")\n";
16181618
out += "{\n";
16191619

1620-
#ifdef UNLEASHED_RECOMP
1621-
16221620
std::string outputName = isPixelShader ? "PixelShaderOutput" : "Interpolators";
16231621

16241622
out += "#ifdef __air__\n";
@@ -1627,6 +1625,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
16271625
println("\t{0} output = ({0})0;", outputName);
16281626
out += "#endif\n";
16291627

1628+
#ifdef UNLEASHED_RECOMP
16301629
if (hasMtxProjection)
16311630
{
16321631
specConstantsMask |= SPEC_CONSTANT_REVERSE_Z;

0 commit comments

Comments
 (0)