summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/paint_property_binder.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/renderer/paint_property_binder.hpp')
-rw-r--r--src/mbgl/renderer/paint_property_binder.hpp21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/mbgl/renderer/paint_property_binder.hpp b/src/mbgl/renderer/paint_property_binder.hpp
index bcbc7c287d..906a2ea07b 100644
--- a/src/mbgl/renderer/paint_property_binder.hpp
+++ b/src/mbgl/renderer/paint_property_binder.hpp
@@ -102,11 +102,8 @@ public:
void populateVertexVector(const GeometryTileFeature&, std::size_t) override {}
void upload(gl::Context&) override {}
- AttributeBinding attributeBinding(const PossiblyEvaluatedPropertyValue<T>& currentValue) const override {
- auto value = attributeValue(currentValue.constantOr(constant));
- return typename Attribute::ConstantBinding {
- zoomInterpolatedAttributeValue(value, value)
- };
+ AttributeBinding attributeBinding(const PossiblyEvaluatedPropertyValue<T>&) const override {
+ return gl::DisabledAttribute();
}
float interpolationFactor(float) const override {
@@ -151,12 +148,9 @@ public:
AttributeBinding attributeBinding(const PossiblyEvaluatedPropertyValue<T>& currentValue) const override {
if (currentValue.isConstant()) {
- BaseAttributeValue value = attributeValue(*currentValue.constant());
- return typename Attribute::ConstantBinding {
- zoomInterpolatedAttributeValue(value, value)
- };
+ return gl::DisabledAttribute();
} else {
- return Attribute::variableBinding(*vertexBuffer, 0, BaseAttribute::Dimensions);
+ return Attribute::binding(*vertexBuffer, 0, BaseAttribute::Dimensions);
}
}
@@ -215,12 +209,9 @@ public:
AttributeBinding attributeBinding(const PossiblyEvaluatedPropertyValue<T>& currentValue) const override {
if (currentValue.isConstant()) {
- BaseAttributeValue value = attributeValue(*currentValue.constant());
- return typename Attribute::ConstantBinding {
- zoomInterpolatedAttributeValue(value, value)
- };
+ return gl::DisabledAttribute();
} else {
- return Attribute::variableBinding(*vertexBuffer, 0);
+ return Attribute::binding(*vertexBuffer, 0);
}
}