//
void CompileShaders(glslang::TWorklist& worklist)
{
+ if (Options & EOptionDebug)
+ Error("cannot generate debug information unless linking to generate code");
+
glslang::TWorkItem* workItem;
if (Options & EOptionStdin) {
worklist.remove(workItem);
return semanticNameSet.insert(name).first->c_str();
}
- void setSourceFile(const char* file) { sourceFile = file; }
+ void setSourceFile(const char* file) { if (file != nullptr) sourceFile = file; }
const std::string& getSourceFile() const { return sourceFile; }
void addSourceText(const char* text) { sourceText = sourceText + text; }
const std::string& getSourceText() const { return sourceText; }