]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix incorrect lookup of GLSL interface variables
authorMikko Rasa <tdb@tdb.fi>
Sun, 12 Dec 2021 21:48:40 +0000 (23:48 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 12 Dec 2021 21:48:40 +0000 (23:48 +0200)
source/glsl/generate.cpp

index fe2d56b8a4737bba58f6086a070ecc3da281b691..99253fe041463ce01a852f340b967cb744f33a50 100644 (file)
@@ -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<string, VariableDeclaration *> &iface_vars = kvp.second->block_declaration->members.variables;
                        i = iface_vars.find(var.name);