]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/program.cpp
Rename VertexComponent to VertexAttribute
[libs/gl.git] / source / core / program.cpp
index fa9a5dede737654e68ec006dd30a2d41667f4e78..7fff5859c1240ca724f8536f1d72e1e59e1511da 100644 (file)
@@ -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)