diff options
| author | 2018-11-07 21:48:45 -0400 | |
|---|---|---|
| committer | 2018-11-07 21:48:45 -0400 | |
| commit | d347623d6f7e7051a4c5ae640b4432b4e2549aa2 (patch) | |
| tree | 7895be54a11f6890a61ef902677f7bb95b0ba8c7 | |
| parent | Implement 3 coordinate array in TEXS instruction (diff) | |
| download | yuzu-d347623d6f7e7051a4c5ae640b4432b4e2549aa2.tar.gz yuzu-d347623d6f7e7051a4c5ae640b4432b4e2549aa2.tar.xz yuzu-d347623d6f7e7051a4c5ae640b4432b4e2549aa2.zip | |
Correct issue where texturelod could not be applied to 2darrayshadow
Diffstat (limited to '')
| -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: | |||
| 2777 | break; | 2777 | break; |
| 2778 | } | 2778 | } |
| 2779 | case Tegra::Shader::TextureProcessMode::LZ: { | 2779 | case Tegra::Shader::TextureProcessMode::LZ: { |
| 2780 | texture = "textureLod(" + sampler + ", coords, 0.0)"; | 2780 | if (depth_compare && is_array) { |
| 2781 | texture = "texture(" + sampler + ", coords)"; | ||
| 2782 | } else { | ||
| 2783 | texture = "textureLod(" + sampler + ", coords, 0.0)"; | ||
| 2784 | } | ||
| 2781 | break; | 2785 | break; |
| 2782 | } | 2786 | } |
| 2783 | case Tegra::Shader::TextureProcessMode::LL: { | 2787 | case Tegra::Shader::TextureProcessMode::LL: { |