Use proper base file for editing shader files

This commit is contained in:
baldurk committed 2022-08-10 21:28:00 +01:00
1 parent 7286da50dc
commit 52909cd090
1 file changed
+1 -1
@@ -997,7 +997,7 @@ IShaderViewer *PipelineStateViewer::EditOriginalShaderSource(ResourceId id,
rdcstrpairs files;
// add the entry point file first, if we have one
const int entryFile = shaderDetails->debugInfo.entryLocation.fileIndex;
const int entryFile = shaderDetails->debugInfo.editBaseFile;
for(int i = -1; i < shaderDetails->debugInfo.files.count(); i++)
{