mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-11 17:20:56 +00:00
Only ignore files with no filename and no contents. Closes #2673
This commit is contained in:
@@ -850,7 +850,7 @@ void Reflector::MakeReflection(const GraphicsAPI sourceAPI, const ShaderStage st
|
||||
case SourceLanguage::Max: break;
|
||||
}
|
||||
|
||||
if(!sources[i].name.empty())
|
||||
if(!sources[i].name.empty() || !sources[i].contents.empty())
|
||||
reflection.debugInfo.files.push_back({sources[i].name, sources[i].contents});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user