]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programdata.cpp
Lots of comment updates
[libs/gl.git] / source / programdata.cpp
index b8a272c0fc0bde8a3699a81e347115327c41938f..7334596c0d4873cfb550b995e5791d8b5236cd2d 100644 (file)
@@ -46,6 +46,9 @@ void ProgramData::uniform(const string &name, Uniform *uni)
        UniformMap::iterator i = uniforms.find(name);
        if(i!=uniforms.end())
        {
+               /* UniformBlock does not copy the uniforms, so existing blocks will be
+               left with stale pointers.  This is not a problem as long as no one stores
+               pointers to the blocks and expects them to stay valid. */
                delete i->second;
                i->second = uni;
                changes = VALUES_CHANGED;