1
0
Fork 0
forked from suyu/suyu

gl_shader_decompiler: Use used_shaders member variable directly within GenerateDeclarations()

Using the getter function intended for external code here makes an
unnecessary copy of the already-accessible used_shaders vector.
This commit is contained in:
Lioncash 2018-09-02 13:10:02 -04:00
parent 325f3e0693
commit 18a89931a9

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