]> git.tdb.fi Git - libs/gl.git/commitdiff
Move Bufferable::refresh_async's definition to the header
authorMikko Rasa <tdb@tdb.fi>
Fri, 29 Oct 2021 09:23:32 +0000 (12:23 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 29 Oct 2021 09:29:48 +0000 (12:29 +0300)
source/core/bufferable.cpp
source/core/bufferable.h

index 0a480e2527cfabbdf24241508d089acb5e8bd726..a0ff06c8f25802f782c37b599f583019073cffb6 100644 (file)
@@ -60,11 +60,6 @@ unsigned Bufferable::get_required_buffer_size() const
        return last->offset+last->get_data_size();
 }
 
-Bufferable::AsyncUpdater *Bufferable::refresh_async() const
-{
-       return dirty ? new AsyncUpdater(*this) : 0;
-}
-
 void Bufferable::unlink_from_buffer()
 {
        if(prev_in_buffer)
index c40c891e3ce342edece4a1ebf5dca74c45c22693..f1d52fb3ee514602d9452882518cc23fc5bc6c16 100644 (file)
@@ -57,7 +57,7 @@ public:
 
        /** Returns an object which can be used to upload data to the buffer using
        mapped memory. */
-       AsyncUpdater *refresh_async() const;
+       AsyncUpdater *refresh_async() const { return dirty ? new AsyncUpdater(*this) : 0; }
 
 private:
        void unlink_from_buffer();