Commit 1e795b2d authored by Thery Sylvain's avatar Thery Sylvain

bug in clipping on mac

parent a3cf7324
......@@ -771,7 +771,11 @@ bool ShaderMutator::srcInsertCodeAtMainFunctionEnd(const std::string& insertedCo
// Insert the source there
modifiedSrc.insert(mainLastBracePos, insertedCode);
size_t posPb = modifiedSrc.find_last_of(';');
if (modifiedSrc.substr(posPb-6,7) == "#endif;")
modifiedSrc[posPb] = '\n';
return true;
}
......
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