]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.cpp
Inline variables which are simple aliases, even if not optimizing
[libs/gl.git] / source / program.cpp
index 9c95ee1730d522665fd78e63ed1124a8ab618556..baeba9f5c33d1091da815f0d14d7f6be45807b3b 100644 (file)
@@ -29,8 +29,7 @@ Program::Program(const ProgramBuilder::StandardFeatures &features)
 
        ProgramBuilder builder(features);
        builder.add_shaders(*this);
-       if(!features.transform)
-               link();
+       link();
 }
 
 Program::Program(const string &vert, const string &frag)
@@ -89,6 +88,11 @@ void Program::bind_attribute(unsigned index, const string &name)
        glBindAttribLocation(id, index, name.c_str());
 }
 
+void Program::bind_attribute(VertexComponent comp, const string &name)
+{
+       bind_attribute(get_component_type(comp), name);
+}
+
 void Program::bind_fragment_data(unsigned index, const string &name)
 {
        static Require _req(EXT_gpu_shader4);