From 6211e1556df8345ad1c4e7edbd635bccdd7f54f0 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 12 Dec 2021 23:48:40 +0200 Subject: [PATCH] Fix incorrect lookup of GLSL interface variables --- source/glsl/generate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.45.2