X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fprogram.cpp;fp=source%2Fcore%2Fprogram.cpp;h=7fff5859c1240ca724f8536f1d72e1e59e1511da;hp=fa9a5dede737654e68ec006dd30a2d41667f4e78;hb=ea7832c7c1ffab00cc1168bc8c41375fdd0eae86;hpb=7f03ee52e8af5f857e44702b6d1c2822a51c62ef diff --git a/source/core/program.cpp b/source/core/program.cpp index fa9a5ded..7fff5859 100644 --- a/source/core/program.cpp +++ b/source/core/program.cpp @@ -171,9 +171,9 @@ void Program::bind_attribute(unsigned index, const string &name) glBindAttribLocation(id, index, name.c_str()); } -void Program::bind_attribute(VertexComponent comp, const string &name) +void Program::bind_attribute(VertexAttribute attr, const string &name) { - bind_attribute(get_component_type(comp), name); + bind_attribute(get_attribute_semantic(attr), name); } void Program::bind_fragment_data(unsigned index, const string &name)