Skip to content

Commit 5f3394c

Browse files
mournergithub-actions[bot]
authored andcommitted
Fix GL_INVALID_VALUE console warning on Mapbox Satellite Standard
GitOrigin-RevId: 9298db53e57f91f1a01e179a841f452064628523
1 parent 936110a commit 5f3394c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/data/program_configuration.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -656,22 +656,21 @@ export default class ProgramConfiguration {
656656
}
657657

658658
getBinderAttributes(): Array<string> {
659-
const result: string[] = [];
659+
const result: Set<string> = new Set();
660660
for (const property in this.binders) {
661661
const binder = this.binders[property];
662662
if (binder instanceof SourceExpressionBinder || binder instanceof CompositeExpressionBinder || binder instanceof PatternCompositeBinder) {
663663
for (let i = 0; i < binder.paintVertexAttributes.length; i++) {
664-
result.push(binder.paintVertexAttributes[i].name);
664+
result.add(binder.paintVertexAttributes[i].name);
665665
}
666666
}
667-
668667
if (binder instanceof PatternCompositeBinder) {
669668
for (let i = 0; i < patternTransitionAttributes.members.length; i++) {
670-
result.push(patternTransitionAttributes.members[i].name);
669+
result.add(patternTransitionAttributes.members[i].name);
671670
}
672671
}
673672
}
674-
return result;
673+
return Array.from(result);
675674
}
676675

677676
getBinderUniforms(): Array<string> {

0 commit comments

Comments
 (0)