Fix arraySize for array-valued return parameter. (#476)

This commit is contained in:
Andreas Süßenbach 2020-01-09 16:21:41 +01:00 committed by Markus Tavenrath
parent 1911d18790
commit 8d62969b4d

View File

@ -1585,7 +1585,7 @@ void VulkanHppGenerator::appendFunctionBodyEnhancedLocalReturnVariableVectorSize
// -> look for it and get it's actual size // -> look for it and get it's actual size
for (auto const& vpi : vectorParamIndices) for (auto const& vpi : vectorParamIndices)
{ {
if ((vpi.first != vectorParamIndex.first) || (vpi.second != vectorParamIndex.second)) if ((vpi.first != vectorParamIndex.first) && (vpi.second == vectorParamIndex.second))
{ {
size = startLowerCase(stripPrefix(params[vpi.first].name, "p")) + ".size()"; size = startLowerCase(stripPrefix(params[vpi.first].name, "p")) + ".size()";
break; break;