summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-11-29 02:07:19 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2018-11-29 03:46:16 +0100
commiteb700afcf08059e6e2483ffbef11c783f352c0b2 (patch)
treec8061c66a268796e1bab642ad237c8375ae10c38 /src/video_core
parentgl_shader_decompiler: Flip negated if else statement (diff)
downloadyuzu-eb700afcf08059e6e2483ffbef11c783f352c0b2.tar
yuzu-eb700afcf08059e6e2483ffbef11c783f352c0b2.tar.gz
yuzu-eb700afcf08059e6e2483ffbef11c783f352c0b2.tar.bz2
yuzu-eb700afcf08059e6e2483ffbef11c783f352c0b2.tar.lz
yuzu-eb700afcf08059e6e2483ffbef11c783f352c0b2.tar.xz
yuzu-eb700afcf08059e6e2483ffbef11c783f352c0b2.tar.zst
yuzu-eb700afcf08059e6e2483ffbef11c783f352c0b2.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index a279599ef..f52c65148 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -2972,15 +2972,13 @@ private:
if (depth_compare) {
regs.SetRegisterToFloat(instr.gpr0, 0, texture, 1, 1, false);
} else {
- shader.AddLine("vec4 texture_tmp = " + texture + ';');
std::size_t dest_elem{};
for (std::size_t elem = 0; elem < 4; ++elem) {
if (!instr.tex.IsComponentEnabled(elem)) {
// Skip disabled components
continue;
}
- regs.SetRegisterToFloat(instr.gpr0, elem, "texture_tmp", 1, 4, false,
- dest_elem);
+ regs.SetRegisterToFloat(instr.gpr0, elem, texture, 1, 4, false, dest_elem);
++dest_elem;
}
}