Commit 8cf3b957 authored by Christopher Tenter's avatar Christopher Tenter

fix dynamic macro insertion for shaders

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20110 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f8705754
......@@ -931,7 +931,7 @@ namespace GLSL {
// add preprocesor macros
if (macros)
if (macros && !macros->empty() && !macros->front().empty())
{
bool foundVersionDirective = false;
......@@ -943,6 +943,7 @@ namespace GLSL {
foundVersionDirective = true;
// insert preprocessor macros in the next line
++it;
for (GLSL::StringList::const_iterator itMacro = macros->begin(); itMacro != macros->end(); ++itMacro)
src.insert(it, *itMacro + "\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment