Only ignore files with no filename and no contents. Closes #2673

This commit is contained in:
baldurk
2022-08-03 10:30:22 +01:00
parent 423da6b377
commit d59e0bd70a
@@ -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});
}