]> git.tdb.fi Git - libs/gl.git/commit
Use a vector for storage in DefaultUniformBlock
authorMikko Rasa <tdb@tdb.fi>
Sat, 10 Apr 2021 20:07:19 +0000 (23:07 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 10 Apr 2021 20:07:19 +0000 (23:07 +0300)
commit3af09f06e9f69532e5adfe6bcd9a7b2d1aea6d5b
treeac9263c429fe764b987ca068922d38d8d59afe24
parent492325880c47450f50dcdebdcb336b37230ef867
Use a vector for storage in DefaultUniformBlock

Uniform locations are normally spaced no more than 4 apart, so even with
a few empty spots a vector is going to be more efficient than a map.
source/core/uniformblock.cpp
source/core/uniformblock.h