]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/bufferable.h
Multiplex streaming buffer contents on Vulkan
[libs/gl.git] / source / core / bufferable.h
index 25d29fd8f393021c6d6af4f86e624d77ec79705b..b2b25765af2ef67b88c3c9e91bb7e785ee97b1b5 100644 (file)
@@ -63,7 +63,7 @@ public:
        std::size_t get_required_buffer_size(bool = false) const;
 
        /** Uploads new data into the buffer if necessary. */
-       void refresh(unsigned f) const { if(dirty&(1<<f)) upload_data(f, 0); }
+       void refresh(unsigned f) const { if(dirty) upload_data(f, 0); }
 
        /** Returns an object which can be used to upload data to the buffer using
        mapped memory.  If data is not dirty, returns null. */