diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2018-11-08 02:48:45 +0100 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2018-11-08 02:48:45 +0100 |
commit | d347623d6f7e7051a4c5ae640b4432b4e2549aa2 (patch) | |
tree | 7895be54a11f6890a61ef902677f7bb95b0ba8c7 | |
parent | Implement 3 coordinate array in TEXS instruction (diff) | |
download | yuzu-d347623d6f7e7051a4c5ae640b4432b4e2549aa2.tar yuzu-d347623d6f7e7051a4c5ae640b4432b4e2549aa2.tar.gz yuzu-d347623d6f7e7051a4c5ae640b4432b4e2549aa2.tar.bz2 yuzu-d347623d6f7e7051a4c5ae640b4432b4e2549aa2.tar.lz yuzu-d347623d6f7e7051a4c5ae640b4432b4e2549aa2.tar.xz yuzu-d347623d6f7e7051a4c5ae640b4432b4e2549aa2.tar.zst yuzu-d347623d6f7e7051a4c5ae640b4432b4e2549aa2.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 98a983d2d..f6a879a7b 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -2777,7 +2777,11 @@ private: break; } case Tegra::Shader::TextureProcessMode::LZ: { - texture = "textureLod(" + sampler + ", coords, 0.0)"; + if (depth_compare && is_array) { + texture = "texture(" + sampler + ", coords)"; + } else { + texture = "textureLod(" + sampler + ", coords, 0.0)"; + } break; } case Tegra::Shader::TextureProcessMode::LL: { |