diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-04 17:52:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-04 17:52:25 +0200 |
commit | 26e96d16d0027b50e1aad2b8edfb23b1af9924ba (patch) | |
tree | 2705297d82fe66b840f5aad39026bea3d32dba43 /src | |
parent | Merge pull request #1235 from lioncash/forward-decl (diff) | |
parent | gl_shader_decompiler: Use used_shaders member variable directly within GenerateDeclarations() (diff) | |
download | yuzu-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.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) + "];"); |