X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fgenerate.cpp;h=d435d29a37e87b2c38f3d7e09ef5ebc6243f0989;hb=ffdb126a55467245da08a9e6f5669f86e1899bb0;hp=064d217e7da7b9b47f2c90dbab59a8f5006f9a77;hpb=99719790df8a1215465a68c7b1d87a495bff87eb;p=libs%2Fgl.git diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index 064d217e..d435d29a 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -52,8 +52,9 @@ void DeclarationCombiner::visit(VariableDeclaration &var) { bool found = false; for(vector::iterator j=ptr->layout->qualifiers.begin(); (!found && j!=ptr->layout->qualifiers.end()); ++j) - if(j->identifier==i->identifier) + if(j->name==i->name) { + j->has_value = i->value; j->value = i->value; found = true; }