Fix #1333: Protect against -g for non-generating code.
This commit is contained in:
@@ -729,6 +729,9 @@ void SetMessageOptions(EShMessages& messages)
|
||||
//
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user