Within the #pragmatic shader composition code added platform specific line endings for WIN32 vs all other platforms to "\r\n" and "\n" respectively.
This commit is contained in:
parent
3a15c66290
commit
60a7b8ce02
@ -1863,16 +1863,16 @@ std::string State::getDefineString(const osg::ShaderDefines& shaderDefines)
|
||||
const StateSet::DefinePair& dp = cd_itr->second;
|
||||
shaderDefineStr += "#define ";
|
||||
shaderDefineStr += cd_itr->first;
|
||||
if (dp.first.empty())
|
||||
{
|
||||
shaderDefineStr += "\n";
|
||||
}
|
||||
else
|
||||
if (!dp.first.empty())
|
||||
{
|
||||
shaderDefineStr += " ";
|
||||
shaderDefineStr += dp.first;
|
||||
shaderDefineStr += "\n";
|
||||
}
|
||||
#ifdef WIN32
|
||||
shaderDefineStr += "\r\n";
|
||||
#else
|
||||
shaderDefineStr += "\n";
|
||||
#endif
|
||||
|
||||
++sd_itr;
|
||||
++cd_itr;
|
||||
|
Loading…
Reference in New Issue
Block a user