Bläddra i källkod

Correct issue where texturelod could not be applied to 2darrayshadow

FernandoS27 7 år sedan
förälder
incheckning
d347623d6f
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. 5 1
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

+ 5 - 1
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: {