]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/bufferable.h
Add a flag to obtain an aligned size requirement from Bufferable
[libs/gl.git] / source / core / bufferable.h
index b430b726277c657fac569fb334bf5c69f624409e..f11d51fa0671b716f7897fdd1f2ed947892f8da9 100644 (file)
@@ -60,7 +60,7 @@ public:
 
        /** Returns the total amount of storage required by this object and others
        in the same chain, including any padding required by object alignment. */
-       std::size_t get_required_buffer_size() const;
+       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); }