Fixed function argument comma insertion.

This commit is contained in:
bkaradzic 2013-10-01 22:50:56 -07:00
parent a2466367ac
commit e78dc677d5
2 changed files with 7 additions and 5 deletions

Binary file not shown.

View file

@ -1692,26 +1692,28 @@ int main(int _argc, const char* _argv[])
if (varyingIt != varyingMap.end() )
{
const Varying& var = varyingIt->second;
preprocessor.writef(" \\\n\t%s%s %s : %s", arg > 0 ? ", " : "", var.m_type.c_str(), var.m_name.c_str(), var.m_semantics.c_str() );
++arg;
preprocessor.writef(" \\\n\t%s%s %s : %s", arg++ > 0 ? ", " : " ", var.m_type.c_str(), var.m_name.c_str(), var.m_semantics.c_str() );
}
}
preprocessor.writef(
" \\\n\t, out vec4 gl_FragColor : SV_TARGET"
" \\\n\t%sout vec4 gl_FragColor : SV_TARGET"
, arg++ > 0 ? ", " : " "
);
if (hasFragDepth)
{
preprocessor.writef(
" \\\n\t, out float gl_FragDepth : SV_DEPTH"
" \\\n\t%sout float gl_FragDepth : SV_DEPTH"
, arg++ > 0 ? ", " : " "
);
}
if (hasFrontFacing)
{
preprocessor.writef(
" \\\n\t, float __vface : VFACE"
" \\\n\t%sfloat __vface : VFACE"
, arg++ > 0 ? ", " : " "
);
}