summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-04 17:52:25 +0200
committerGitHub <noreply@github.com>2018-09-04 17:52:25 +0200
commit26e96d16d0027b50e1aad2b8edfb23b1af9924ba (patch)
tree2705297d82fe66b840f5aad39026bea3d32dba43 /src
parentMerge pull request #1235 from lioncash/forward-decl (diff)
parentgl_shader_decompiler: Use used_shaders member variable directly within GenerateDeclarations() (diff)
downloadyuzu-26e96d16d0027b50e1aad2b8edfb23b1af9924ba.tar
yuzu-26e96d16d0027b50e1aad2b8edfb23b1af9924ba.tar.gz
yuzu-26e96d16d0027b50e1aad2b8edfb23b1af9924ba.tar.bz2
yuzu-26e96d16d0027b50e1aad2b8edfb23b1af9924ba.tar.lz
yuzu-26e96d16d0027b50e1aad2b8edfb23b1af9924ba.tar.xz
yuzu-26e96d16d0027b50e1aad2b8edfb23b1af9924ba.tar.zst
yuzu-26e96d16d0027b50e1aad2b8edfb23b1af9924ba.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp2
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) + "];");