X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fvalidate.cpp;h=7235e2237a81493fec5f31352874bc5ebc2e7f41;hp=889eee221b265ca98788fcd8dd73a8db22b76f64;hb=a8472c4fc8bce5db0d50d920f9c4159bda631e30;hpb=7b03ca83ca6c48b9f8c3f77c13760e7f87e9632d diff --git a/source/glsl/validate.cpp b/source/glsl/validate.cpp index 889eee22..7235e223 100644 --- a/source/glsl/validate.cpp +++ b/source/glsl/validate.cpp @@ -70,6 +70,12 @@ void DeclarationValidator::visit(Layout &layout) allowed = (variable && scope==GLOBAL); else if(i->name=="binding" || i->name=="set") { + if(i->name=="set") + { + error(layout, "Layout qualifier 'set' not allowed when targeting OpenGL"); + continue; + } + if(variable) { TypeDeclaration *type = variable->type_declaration;