Don't add source files if they don't have source code

This commit is contained in:
baldurk
2019-09-20 12:53:00 +01:00
parent aa57240d9c
commit e0c397a343
@@ -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;