Fixed handling of #define's that are used as functions

This commit is contained in:
Robert Osfield
2016-10-31 16:11:20 +00:00
parent ca6578026a
commit 38c515a600

View File

@@ -1621,7 +1621,7 @@ std::string State::getDefineString(const osg::ShaderDefines& shaderDefines)
shaderDefineStr += cd_itr->first;
if (!dp.first.empty())
{
shaderDefineStr += " ";
if (dp.first[0]!='(') shaderDefineStr += " ";
shaderDefineStr += dp.first;
}
#ifdef WIN32