From: Mikko Rasa Date: Mon, 25 Jan 2021 02:18:50 +0000 (+0200) Subject: Minor comment adjustments X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5bc9c7214feaf4ea4797fc0d4a906e5e59b75839;p=libs%2Fgl.git Minor comment adjustments --- diff --git a/source/bufferable.h b/source/bufferable.h index 8e656246..cbbde4e1 100644 --- a/source/bufferable.h +++ b/source/bufferable.h @@ -55,6 +55,8 @@ public: /** Uploads new data into the buffer if necessary. */ void refresh() const { if(buffer && dirty) upload_data(0); } + /** Returns an object which can be used to upload data to the buffer using + mapped memory. */ AsyncUpdater *refresh_async() const; private: @@ -88,7 +90,7 @@ protected: private: /** Uploads data to the buffer. Receives pointer to mapped buffer memory as - parameter. If null, buffer interface should be used instead. */ + parameter, or null to use the buffer upload interface. */ void upload_data(char *) const; }; diff --git a/source/programdata.cpp b/source/programdata.cpp index 5005373b..5f124a90 100644 --- a/source/programdata.cpp +++ b/source/programdata.cpp @@ -601,7 +601,7 @@ void ProgramData::apply() const { /* If the global dirty flag affects this program, add it to per-program dirty flags and clear the global flag. A previously unseen program will - always cause this to happen. */ + cause this to happen if there's any dirty uniforms. */ if(affected) { for(BlockMap::iterator i=blocks.begin(); i!=blocks.end(); ++i)