diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-07-11 15:11:14 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-07-12 20:42:29 +0300 |
commit | f1ac757bd28351fd57113a1e16f6c2e00ab193c1 (patch) | |
tree | a68be48a2c6934c11fbda3efbc6077c45e703906 /src/mbgl/gl/attribute.hpp | |
parent | 1aacc88f350d2d54337cdacb1a653785c759586b (diff) | |
download | qtlocation-mapboxgl-f1ac757bd28351fd57113a1e16f6c2e00ab193c1.tar.gz |
[core] GCC 4.9 does not fully support custom variable templates
Diffstat (limited to 'src/mbgl/gl/attribute.hpp')
-rw-r--r-- | src/mbgl/gl/attribute.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mbgl/gl/attribute.hpp b/src/mbgl/gl/attribute.hpp index f018a1d261..bc02b54bd2 100644 --- a/src/mbgl/gl/attribute.hpp +++ b/src/mbgl/gl/attribute.hpp @@ -240,9 +240,6 @@ public: using Vertex = detail::Vertex<typename As::Type...>; - template <class A> - static constexpr std::size_t Index = TypeIndex<A, As...>::value; - static Locations bindLocations(const ProgramID& id) { std::set<std::string> activeAttributes = getActiveAttributes(id); @@ -266,7 +263,7 @@ public: template <class DrawMode> static Bindings bindings(const VertexBuffer<Vertex, DrawMode>& buffer) { - return Bindings { As::Type::binding(buffer, Index<As>)... }; + return Bindings { As::Type::binding(buffer, TypeIndex<As, As...>::value)... }; } static void bind(Context& context, |