From 5bc9c7214feaf4ea4797fc0d4a906e5e59b75839 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 25 Jan 2021 04:18:50 +0200 Subject: [PATCH] Minor comment adjustments --- source/bufferable.h | 4 +++- source/programdata.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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) -- 2.43.0