[core] Align line vertex to 4-byte boundary

10 byte vertices are heavily penalized by common GL implementations.
This commit is contained in:
John Firebaugh
2017-09-07 15:21:05 -07:00
parent b05e5ddd34
commit aa4dff1095
7 changed files with 14 additions and 22 deletions

View File

@@ -10,7 +10,7 @@ namespace mbgl {
using namespace style;
static_assert(sizeof(LineLayoutVertex) == 10, "expected LineLayoutVertex size");
static_assert(sizeof(LineLayoutVertex) == 12, "expected LineLayoutVertex size");
template <class Values, class...Args>
Values makeValues(const RenderLinePaintProperties::PossiblyEvaluated& properties,