]> git.tdb.fi Git - libs/gl.git/commitdiff
Complain about named interface blocks if not supported
authorMikko Rasa <tdb@tdb.fi>
Sun, 7 Mar 2021 22:16:15 +0000 (00:16 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 8 Mar 2021 00:48:41 +0000 (02:48 +0200)
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);
+               }
        }
 }