X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcore%2Fbufferable.h;h=25d29fd8f393021c6d6af4f86e624d77ec79705b;hb=5003bcfeb0832ec2d0f74f4149bc97888a70a900;hp=f11d51fa0671b716f7897fdd1f2ed947892f8da9;hpb=5fa0901a84cdba32f491a4e3997916f2fbb30863;p=libs%2Fgl.git diff --git a/source/core/bufferable.h b/source/core/bufferable.h index f11d51fa..25d29fd8 100644 --- a/source/core/bufferable.h +++ b/source/core/bufferable.h @@ -41,7 +41,7 @@ private: Bufferable *next_in_buffer = 0; Bufferable *prev_in_buffer = 0; mutable bool location_dirty = false; - mutable bool dirty = false; + mutable uint8_t dirty = 0; protected: Bufferable() = default; @@ -63,11 +63,11 @@ public: std::size_t get_required_buffer_size(bool = false) const; /** Uploads new data into the buffer if necessary. */ - void refresh() const { if(dirty) upload_data(0); } + void refresh(unsigned f) const { if(dirty&(1<