mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 15:22:45 +01:00
gl_shader_decompiler: Remove texture temporal in TLD4
This commit is contained in:
parent
8d58e5da71
commit
eb700afcf0
1 changed files with 1 additions and 3 deletions
|
@ -2972,15 +2972,13 @@ private:
|
||||||
if (depth_compare) {
|
if (depth_compare) {
|
||||||
regs.SetRegisterToFloat(instr.gpr0, 0, texture, 1, 1, false);
|
regs.SetRegisterToFloat(instr.gpr0, 0, texture, 1, 1, false);
|
||||||
} else {
|
} else {
|
||||||
shader.AddLine("vec4 texture_tmp = " + texture + ';');
|
|
||||||
std::size_t dest_elem{};
|
std::size_t dest_elem{};
|
||||||
for (std::size_t elem = 0; elem < 4; ++elem) {
|
for (std::size_t elem = 0; elem < 4; ++elem) {
|
||||||
if (!instr.tex.IsComponentEnabled(elem)) {
|
if (!instr.tex.IsComponentEnabled(elem)) {
|
||||||
// Skip disabled components
|
// Skip disabled components
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
regs.SetRegisterToFloat(instr.gpr0, elem, "texture_tmp", 1, 4, false,
|
regs.SetRegisterToFloat(instr.gpr0, elem, texture, 1, 4, false, dest_elem);
|
||||||
dest_elem);
|
|
||||||
++dest_elem;
|
++dest_elem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue