X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fprogram.cpp;h=7fff5859c1240ca724f8536f1d72e1e59e1511da;hb=2e7ed8bf667c2a3b79683cbda2ebce15019e5f88;hp=fa9a5dede737654e68ec006dd30a2d41667f4e78;hpb=c9425c6ea4ed54925cb10d31a8d4bb0aca9aa866;p=libs%2Fgl.git 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)