From 38c515a60071e6cb2fc57d0f6edbac0be2a8c799 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 31 Oct 2016 16:11:20 +0000 Subject: [PATCH] Fixed handling of #define's that are used as functions --- src/osg/State.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/State.cpp b/src/osg/State.cpp index 0cd80d670..030a57e5c 100644 --- a/src/osg/State.cpp +++ b/src/osg/State.cpp @@ -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