]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/validate.cpp
Disallow the descriptor set qualifier for now
[libs/gl.git] / source / glsl / validate.cpp
index 889eee221b265ca98788fcd8dd73a8db22b76f64..7235e2237a81493fec5f31352874bc5ebc2e7f41 100644 (file)
@@ -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;