Browse Source
Merge pull request #1232 from lioncash/copy
gl_shader_decompiler: Use used_shaders member variable directly within GenerateDeclarations()
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/video_core/renderer_opengl/gl_shader_decompiler.cpp
|
|
@ -441,7 +441,7 @@ public: |
|
|
declarations.AddNewLine(); |
|
|
declarations.AddNewLine(); |
|
|
|
|
|
|
|
|
// Append the sampler2D array for the used textures.
|
|
|
// 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) { |
|
|
if (num_samplers > 0) { |
|
|
declarations.AddLine("uniform sampler2D " + SamplerEntry::GetArrayName(stage) + '[' + |
|
|
declarations.AddLine("uniform sampler2D " + SamplerEntry::GetArrayName(stage) + '[' + |
|
|
std::to_string(num_samplers) + "];"); |
|
|
std::to_string(num_samplers) + "];"); |
|
|
|