mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-10 00:41:19 +12:00
Latte: Fix shader compilation error when subroutines are used
Fixes character colors in Tekken Tag Tournament 2
This commit is contained in:
parent
b902aa2048
commit
92ab87b049
2 changed files with 3 additions and 2 deletions
|
@ -4037,8 +4037,8 @@ void LatteDecompiler_emitGLSLShader(LatteDecompilerShaderContext* shaderContext,
|
|||
for (auto& subroutineInfo : shaderContext->list_subroutines)
|
||||
{
|
||||
sint32 subroutineMaxStackDepth = 0;
|
||||
src->addFmt("bool activeMaskStackSub%04x[{}];" _CRLF, subroutineInfo.cfAddr, subroutineMaxStackDepth + 1);
|
||||
src->addFmt("bool activeMaskStackCSub%04x[{}];" _CRLF, subroutineInfo.cfAddr, subroutineMaxStackDepth + 2);
|
||||
src->addFmt("bool activeMaskStackSub{:04x}[{}];" _CRLF, subroutineInfo.cfAddr, subroutineMaxStackDepth + 1);
|
||||
src->addFmt("bool activeMaskStackCSub{:04x}[{}];" _CRLF, subroutineInfo.cfAddr, subroutineMaxStackDepth + 2);
|
||||
}
|
||||
}
|
||||
// helper variables for cube maps (todo: Only emit when used)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue