mirror of
https://github.com/hedge-dev/XenosRecomp.git
synced 2025-10-30 07:12:17 +00:00
Always emit output struct init
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
This commit is contained in:
parent
a0e2d16fb0
commit
a04c00ebf4
1 changed files with 1 additions and 2 deletions
|
|
@ -1617,8 +1617,6 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
|
||||||
out += ")\n";
|
out += ")\n";
|
||||||
out += "{\n";
|
out += "{\n";
|
||||||
|
|
||||||
#ifdef UNLEASHED_RECOMP
|
|
||||||
|
|
||||||
std::string outputName = isPixelShader ? "PixelShaderOutput" : "Interpolators";
|
std::string outputName = isPixelShader ? "PixelShaderOutput" : "Interpolators";
|
||||||
|
|
||||||
out += "#ifdef __air__\n";
|
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);
|
println("\t{0} output = ({0})0;", outputName);
|
||||||
out += "#endif\n";
|
out += "#endif\n";
|
||||||
|
|
||||||
|
#ifdef UNLEASHED_RECOMP
|
||||||
if (hasMtxProjection)
|
if (hasMtxProjection)
|
||||||
{
|
{
|
||||||
specConstantsMask |= SPEC_CONSTANT_REVERSE_Z;
|
specConstantsMask |= SPEC_CONSTANT_REVERSE_Z;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue