From: Mikko Rasa Date: Sun, 7 Mar 2021 22:16:15 +0000 (+0200) Subject: Complain about named interface blocks if not supported X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=02c43c5aebb2214af8144eaf19f25b9a04aa2414 Complain about named interface blocks if not supported --- diff --git a/source/glsl/compatibility.cpp b/source/glsl/compatibility.cpp index 55fa30d9..a5ba8247 100644 --- a/source/glsl/compatibility.cpp +++ b/source/glsl/compatibility.cpp @@ -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); + } } }