]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.cpp
Improve interface documentation a bit
[libs/gl.git] / source / program.cpp
index 50ebed22899d57fae6d21518fdce048084b7062b..66ca36b1c5210a3ec0e0e29ff1b61a0336bcbe9e 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)
@@ -126,7 +125,7 @@ void Program::link()
                if(len && strncmp(name, "gl_", 3))
                {
                        /* Some implementations report the first element of a uniform array,
-                       others report just the name of an array. */
+                       others report just the name of the array itself. */
                        if(len>3 && !strcmp(name+len-3, "[0]"))
                                name[len-3] = 0;