diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-01-07 22:45:12 +0100 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2020-01-24 21:44:47 +0100 |
commit | 7c530e06661d760eb6366724d109468423363072 (patch) | |
tree | 529a0bdfb0aa41773468be8966d9f5c8738e6e3d /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Shader_IR: Implement Injectable Custom Variables to the IR. (diff) | |
download | yuzu-7c530e06661d760eb6366724d109468423363072.tar yuzu-7c530e06661d760eb6366724d109468423363072.tar.gz yuzu-7c530e06661d760eb6366724d109468423363072.tar.bz2 yuzu-7c530e06661d760eb6366724d109468423363072.tar.lz yuzu-7c530e06661d760eb6366724d109468423363072.tar.xz yuzu-7c530e06661d760eb6366724d109468423363072.tar.zst yuzu-7c530e06661d760eb6366724d109468423363072.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_decompiler.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 2 |
1 files changed, 1 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 8b413ae9a..df681bdcb 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1123,7 +1123,7 @@ private: if (!meta->sampler.IsIndexed()) { expr += '(' + GetSampler(meta->sampler) + ", "; } else { - expr += '(' + GetSampler(meta->sampler) + "[0], "; + expr += '(' + GetSampler(meta->sampler) + '[' + Visit(meta->index).AsUint() + "], "; } expr += coord_constructors.at(count + (has_array ? 1 : 0) + (has_shadow && !separate_dc ? 1 : 0) - 1); |