commit | 7f0bcfd8d844c0d76c2c7e7d8daed6167bc053ea | [log] [tgz] |
---|---|---|
author | John Kessenich <cepheus@frii.com> | Thu Apr 05 19:00:01 2018 -0600 |
committer | John Kessenich <cepheus@frii.com> | Thu Apr 05 19:00:01 2018 -0600 |
tree | c435f941e2c1235056141a4ba0ae0a5f994a2cea | |
parent | a89f8cf76b6c6ffa53045f90fe43c3de7f8d8caa [diff] [blame] |
Fix #1333: Protect against -g for non-generating code.
diff --git a/StandAlone/StandAlone.cpp b/StandAlone/StandAlone.cpp index bb38e1c..044662f 100644 --- a/StandAlone/StandAlone.cpp +++ b/StandAlone/StandAlone.cpp
@@ -729,6 +729,9 @@ // 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);