@@ -942,9 +942,9 @@ const GlslProgram::InputMap& GlslProgram::updateUniformsList()
942942 continue ;
943943 }
944944
945- for (size_t i = 0 ; i < uniforms.size (); ++i )
945+ for (size_t uniformIndex = 0 ; uniformIndex < uniforms.size (); ++uniformIndex )
946946 {
947- const ShaderPort* v = uniforms[i ];
947+ const ShaderPort* v = uniforms[uniformIndex ];
948948
949949 const auto & variablePath = v->getPath ();
950950 const auto & variableUnit = v->getUnit ();
@@ -957,15 +957,15 @@ const GlslProgram::InputMap& GlslProgram::updateUniformsList()
957957 {
958958 auto populateUniformInput_impl =
959959 [this , variablePath, variableUnit, variableColorspace, variableSemantic, &errors, uniforms, &uniformTypeMismatchFound]
960- (TypeDesc typedesc , const string& variableName , ConstValuePtr variableValue , auto & populateUniformInput_ref) -> void
960+ (TypeDesc typedesc_impl , const string& variableName_impl , ConstValuePtr variableValue_impl , auto & populateUniformInput_ref) -> void
961961 {
962- if (!typedesc .isStruct ())
962+ if (!typedesc_impl .isStruct ())
963963 {
964964 // Handle non-struct types
965- int glType = mapTypeToOpenGLType (typedesc );
965+ int glType = mapTypeToOpenGLType (typedesc_impl );
966966
967967 // There is no way to match with an unnamed variable
968- if (variableName .empty ())
968+ if (variableName_impl .empty ())
969969 {
970970 return ;
971971 }
@@ -976,26 +976,26 @@ const GlslProgram::InputMap& GlslProgram::updateUniformsList()
976976 return ;
977977 }
978978
979- auto inputIt = _uniformList.find (variableName );
979+ auto inputIt = _uniformList.find (variableName_impl );
980980 if (inputIt != _uniformList.end ())
981981 {
982982 Input* input = inputIt->second .get ();
983983 input->path = variablePath;
984984 input->unit = variableUnit;
985985 input->colorspace = variableColorspace;
986- input->value = variableValue ;
986+ input->value = variableValue_impl ;
987987 if (input->gltype == glType)
988988 {
989- input->typeString = typedesc .getName ();
989+ input->typeString = typedesc_impl .getName ();
990990 }
991991 else
992992 {
993993 errors.push_back (
994994 " Pixel shader uniform block type mismatch [" + uniforms.getName () + " ]. "
995- + " Name: \" " + variableName
996- + " \" . Type: \" " + typedesc .getName ()
995+ + " Name: \" " + variableName_impl
996+ + " \" . Type: \" " + typedesc_impl .getName ()
997997 + " \" . Semantic: \" " + variableSemantic
998- + " \" . Value: \" " + (variableValue ? variableValue ->getValueString () : " <none>" )
998+ + " \" . Value: \" " + (variableValue_impl ? variableValue_impl ->getValueString () : " <none>" )
999999 + " \" . Unit: \" " + (!variableUnit.empty () ? variableUnit : " <none>" )
10001000 + " \" . Colorspace: \" " + (!variableColorspace.empty () ? variableColorspace : " <none>" )
10011001 + " \" . GLType: " + std::to_string (glType));
@@ -1005,16 +1005,16 @@ const GlslProgram::InputMap& GlslProgram::updateUniformsList()
10051005 }
10061006 else
10071007 {
1008- auto variableStructMembers = typedesc .getStructMembers ();
1008+ auto variableStructMembers = typedesc_impl .getStructMembers ();
10091009 if (variableStructMembers)
10101010 {
10111011 // If we're a struct - we need to loop over each member
1012- auto aggregateValue = std::static_pointer_cast<const AggregateValue>(variableValue );
1012+ auto aggregateValue = std::static_pointer_cast<const AggregateValue>(variableValue_impl );
10131013
10141014 for (size_t i = 0 , n = variableStructMembers->size (); i < n; ++i)
10151015 {
10161016 const auto & structMember = (*variableStructMembers)[i];
1017- auto memberVariableName = variableName + " ." + structMember.getName ();
1017+ auto memberVariableName = variableName_impl + " ." + structMember.getName ();
10181018 auto memberVariableValue = aggregateValue->getMemberValue (i);
10191019
10201020 populateUniformInput_ref (structMember.getType (), memberVariableName, memberVariableValue, populateUniformInput_ref);
0 commit comments