diff options
author | Lioncash <mathew1800@gmail.com> | 2018-09-02 19:10:02 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-09-02 19:10:11 +0200 |
commit | 18a89931a981d473e0eb64e7b7d34a2770066760 (patch) | |
tree | e1fb2d357a4558673908b24e9af8cc687852e12f /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Merge pull request #1213 from DarkLordZach/octopath-fs (diff) | |
download | yuzu-18a89931a981d473e0eb64e7b7d34a2770066760.tar yuzu-18a89931a981d473e0eb64e7b7d34a2770066760.tar.gz yuzu-18a89931a981d473e0eb64e7b7d34a2770066760.tar.bz2 yuzu-18a89931a981d473e0eb64e7b7d34a2770066760.tar.lz yuzu-18a89931a981d473e0eb64e7b7d34a2770066760.tar.xz yuzu-18a89931a981d473e0eb64e7b7d34a2770066760.tar.zst yuzu-18a89931a981d473e0eb64e7b7d34a2770066760.zip |
Diffstat (limited to '')
-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 c4e7e1e3b..d3e8f5078 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -441,7 +441,7 @@ public: declarations.AddNewLine(); // Append the sampler2D array for the used textures. - size_t num_samplers = GetSamplers().size(); + const size_t num_samplers = used_samplers.size(); if (num_samplers > 0) { declarations.AddLine("uniform sampler2D " + SamplerEntry::GetArrayName(stage) + '[' + std::to_string(num_samplers) + "];"); |