diff --git a/code/nel/include/nel/3d/uniform_buffer_format.h b/code/nel/include/nel/3d/uniform_buffer_format.h index 0c9d37d21..b4431bfe0 100644 --- a/code/nel/include/nel/3d/uniform_buffer_format.h +++ b/code/nel/include/nel/3d/uniform_buffer_format.h @@ -110,7 +110,7 @@ public: inline size_t count() const { return m_Entries.size(); } // Return number of entries inline void clear() { m_Entries.clear(); m_Hash = 0; } - inline sint size() const { return m_Entries.size() ? (m_Entries.back().Offset + m_Entries.back().size()) : 0; } // Return size of format in bytes + inline sint size() const { return m_Entries.size() ? (((m_Entries.back().Offset + m_Entries.back().size()) + 15) & ~0xF) : 0; } // Return size of format in bytes inline size_t hash() const { return m_Hash; } // Get the offset by entry id (counted from 0 in the order of addition to the format) and index of array