mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Don't add source files if they don't have source code
This commit is contained in:
@@ -724,7 +724,8 @@ void Reflector::MakeReflection(const GraphicsAPI sourceAPI, const ShaderStage st
|
||||
case SourceLanguage::Max: break;
|
||||
}
|
||||
|
||||
reflection.debugInfo.files.push_back({sources[i].name, sources[i].contents});
|
||||
if(!sources[i].contents.empty())
|
||||
reflection.debugInfo.files.push_back({sources[i].name, sources[i].contents});
|
||||
}
|
||||
|
||||
std::set<Id> usedIds;
|
||||
|
||||
Reference in New Issue
Block a user