diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-09-07 15:21:05 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-09-08 09:35:47 -0700 |
commit | aa4dff1095e8f5e8ad584f5f7dcab3e61d8cf8ee (patch) | |
tree | 796efd2b8d33c1e6b6c7b4e401a761aa5cca8f86 /src/mbgl/programs/attributes.hpp | |
parent | b05e5ddd347a9362535ca33cefceae92c51c998f (diff) | |
download | qtlocation-mapboxgl-aa4dff1095e8f5e8ad584f5f7dcab3e61d8cf8ee.tar.gz |
[core] Align line vertex to 4-byte boundary
10 byte vertices are heavily penalized by common GL implementations.
Diffstat (limited to 'src/mbgl/programs/attributes.hpp')
-rw-r--r-- | src/mbgl/programs/attributes.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/programs/attributes.hpp b/src/mbgl/programs/attributes.hpp index 3a38453d30..d023ec7d83 100644 --- a/src/mbgl/programs/attributes.hpp +++ b/src/mbgl/programs/attributes.hpp @@ -23,7 +23,7 @@ inline uint16_t packUint8Pair(T a, T b) { MBGL_DEFINE_ATTRIBUTE(int16_t, 2, a_pos); MBGL_DEFINE_ATTRIBUTE(int16_t, 2, a_extrude); MBGL_DEFINE_ATTRIBUTE(int16_t, 4, a_pos_offset); -MBGL_DEFINE_ATTRIBUTE(int16_t, 3, a_pos_normal); +MBGL_DEFINE_ATTRIBUTE(int16_t, 4, a_pos_normal); MBGL_DEFINE_ATTRIBUTE(float, 3, a_projected_pos); MBGL_DEFINE_ATTRIBUTE(int16_t, 2, a_label_pos); MBGL_DEFINE_ATTRIBUTE(int16_t, 2, a_anchor_pos); |