mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 13:21:45 +00:00
Fix nested #includes not being replaced
This commit is contained in:
1 parent
8abb2f19cc
commit
37c1cbffd9
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user