Align total ubo size

--HG--
branch : opengl3
hg/feature/opengl3
kaetemi 10 years ago
parent 22f6ba78ac
commit 66b94d93bf

@ -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

Loading…
Cancel
Save