1
0
Fork 0
forked from suyu/suyu

Merge pull request #1232 from lioncash/copy

gl_shader_decompiler: Use used_shaders member variable directly within GenerateDeclarations()
This commit is contained in:
bunnei 2018-09-04 11:52:25 -04:00 committed by GitHub
commit 26e96d16d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) + "];");