Fix nested #includes not being replaced

This commit is contained in:
baldurk
2015-03-29 18:12:13 +01:00
parent 8abb2f19cc
commit 37c1cbffd9
@@ -1958,7 +1958,8 @@ namespace renderdocui.Windows.PipelineState
compileSource = compileSource.Substring(0, offs) + "\n\n" + fileText + "\n\n" + (tail ? compileSource.Substring(lineEnd + 1) : "");
offs = compileSource.IndexOf("#include", offs);
// need to start searching from the beginning - wasteful but allows nested includes to work
offs = compileSource.IndexOf("#include");
}
// invoke off to the ReplayRenderer to replace the log's shader