]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programdata.cpp
Cosmetic changes and TODOs
[libs/gl.git] / source / programdata.cpp
index b69d7b062dd61af65164f94b65fc6fc41cceb90b..ca6ae5ba44dbae3ee8b5ee992b6c85ff785fde5f 100644 (file)
@@ -295,6 +295,8 @@ unsigned ProgramData::compute_slot_mask(const Program::UniformBlockInfo &block)
        for(vector<const Program::UniformInfo *>::const_iterator i=block.uniforms.begin(); i!=block.uniforms.end(); ++i)
        {
                SlotMap::const_iterator j = uniform_slots.find((*i)->name);
+               /* TODO issue a warning (or even error?) either here or in update_block
+               if all uniforms for a buffer-backed block are not found */
                if(j!=uniform_slots.end() && j->second<MASK_BITS)
                        mask |= 1<<j->second;
        }