diff --git a/src/mbgl/renderer/paint_property_binder.hpp b/src/mbgl/renderer/paint_property_binder.hpp index 80d7af55a..5f39d1463 100644 --- a/src/mbgl/renderer/paint_property_binder.hpp +++ b/src/mbgl/renderer/paint_property_binder.hpp @@ -167,11 +167,18 @@ public: return std::tuple{currentValue.constantOr(constant)}; } + using BaseAttributeType = A; + using BaseVertex = gfx::VertexType; + std::size_t getVertexCount() const override { return 1; } - const /*std::tuple>&*/ void* getVertexValue(std::size_t) const override { return &constant; } + const /*std::tuple>&*/ void* getVertexValue(std::size_t) const override { + convertedValue = BaseVertex{attributeValue(constant)}; + return &convertedValue; + } private: T constant; + mutable BaseVertex convertedValue; }; template