[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

@@ -59,7 +59,8 @@ public:
{{
p.x,
p.y,
static_cast<int16_t>(attributes::packUint8Pair(round ? 1 : 0, up ? 1 : 0))
static_cast<int16_t>(round ? 1 : 0),
static_cast<int16_t>(up ? 1 : -1)
}},
{{
// add 128 to store a byte in an unsigned byte