summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2018-11-08 02:48:45 +0100
committerFernandoS27 <fsahmkow27@gmail.com>2018-11-08 02:48:45 +0100
commitd347623d6f7e7051a4c5ae640b4432b4e2549aa2 (patch)
tree7895be54a11f6890a61ef902677f7bb95b0ba8c7
parentImplement 3 coordinate array in TEXS instruction (diff)
downloadyuzu-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.cpp6
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: {