summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-08-01 12:22:16 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-08-08 18:06:44 -0700
commit822df3dd514ec3d05f876e6746cb8ba6348ac89d (patch)
tree5182e0ff7ec1d5dcad54a236b9a4496a1a758cd4 /include/mbgl
parent33407591f5a1176aefb4d3f03ae8b74c947cc828 (diff)
downloadqtlocation-mapboxgl-822df3dd514ec3d05f876e6746cb8ba6348ac89d.tar.gz
[core] Use separate attribute component for line normals
Broadcom GPUs don't cope well with using the least significant bit for this.
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/util/constants.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mbgl/util/constants.hpp b/include/mbgl/util/constants.hpp
index c2250c6f2e..250c77b078 100644
--- a/include/mbgl/util/constants.hpp
+++ b/include/mbgl/util/constants.hpp
@@ -19,7 +19,8 @@ constexpr float tileSize = 512;
*
* Positions are stored as signed 16bit integers.
* One bit is lost for signedness to support features extending past the left edge of the tile.
- * One bit is lost because the line vertex buffer packs 1 bit of other data into the int.
+ * One bit is lost because the line vertex buffer used to pack 1 bit of other data into the int.
+ * This is no longer the case but we're reserving this bit anyway.
* One bit is lost to support features extending past the extent on the right edge of the tile.
* This leaves us with 2^13 = 8192
*/