]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/compatibility.cpp
Complain about named interface blocks if not supported
[libs/gl.git] / source / glsl / compatibility.cpp
index 55fa30d9154af0812be6ae5ccf9c7b6e58b56477..a5ba8247a53d705c82223d9b8241e5d28dbea14e 100644 (file)
@@ -343,8 +343,13 @@ void LegacyConverter::visit(InterfaceBlock &iface)
 {
        if(!supports_interface_blocks(iface.interface))
        {
-               stage->content.body.splice(uniform_insert_point, iface.members.body);
-               nodes_to_remove.insert(&iface);
+               if(!iface.instance_name.empty())
+                       unsupported("ARB_uniform_buffer_object required for interface block instances");
+               else
+               {
+                       stage->content.body.splice(uniform_insert_point, iface.members.body);
+                       nodes_to_remove.insert(&iface);
+               }
        }
 }