From: Mikko Rasa Date: Sun, 12 Dec 2021 21:48:40 +0000 (+0200) Subject: Fix incorrect lookup of GLSL interface variables X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6211e1556df8345ad1c4e7edbd635bccdd7f54f0;p=libs%2Fgl.git Fix incorrect lookup of GLSL interface variables --- diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index fe2d56b8..99253fe0 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -203,7 +203,7 @@ void InterfaceGenerator::visit(VariableReference &var) } for(const auto &kvp: stage->previous->interface_blocks) - if(kvp.first.find(' ')!=string::npos) + if(kvp.second->name.find(' ')!=string::npos) { const map &iface_vars = kvp.second->block_declaration->members.variables; i = iface_vars.find(var.name);