[core] Eliminate constant attribute bindings

Rather than binding constant attributes that will never be used, just disable the attribute.
This commit is contained in:
John Firebaugh
2017-06-13 16:45:12 -07:00
parent ccb5255537
commit 874244a656
6 changed files with 77 additions and 230 deletions

View File

@@ -66,7 +66,7 @@ public:
std::move(colorMode),
uniformValues
.concat(paintPropertyBinders.uniformValues(currentZoom, currentProperties)),
LayoutAttributes::allVariableBindings(layoutVertexBuffer)
LayoutAttributes::bindings(layoutVertexBuffer)
.concat(paintPropertyBinders.attributeBindings(currentProperties)),
indexBuffer,
segments