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

bug in clipping on mac

parent a3cf7324
......@@ -772,6 +772,10 @@ 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;
Supports Markdown
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