std::size_t get_required_buffer_size(bool = false) const;
/** Uploads new data into the buffer if necessary. */
- void refresh(unsigned f) const { if(dirty&(1<<f)) upload_data(f, 0); }
+ void refresh(unsigned f) const { if(dirty) upload_data(f, 0); }
/** Returns an object which can be used to upload data to the buffer using
mapped memory. If data is not dirty, returns null. */