X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tools%2Fglslcompiler.cpp;fp=tools%2Fglslcompiler.cpp;h=a1eb1a1fa4d87ddd77c71c47acb0fca563c5b309;hb=cdc2c7176202b4f8d1f3fd21db9c571511b32fa2;hp=7af8c80bcf78cc5852b38a3f9d573cd4a976144d;hpb=5bc24ab4e232241a9e4696787e22f2cb0c3602d8;p=libs%2Fgl.git diff --git a/tools/glslcompiler.cpp b/tools/glslcompiler.cpp index 7af8c80b..a1eb1a1f 100644 --- a/tools/glslcompiler.cpp +++ b/tools/glslcompiler.cpp @@ -74,6 +74,8 @@ GlslCompiler::GlslCompiler(int argc, char **argv): else if(!dump_ast) combined = true; + if(!spec_values_in.empty() && as_module) + throw usage_error("Modules can't be specialized"); for(vector::const_iterator i=spec_values_in.begin(); i!=spec_values_in.end(); ++i) { unsigned colon = i->find(':');