Skip to content

Commit

Permalink
Remove using Set since some the functionalities of Set is not support…
Browse files Browse the repository at this point in the history
…ed in IE11.
  • Loading branch information
sgolbabaei committed Apr 28, 2020
1 parent 875f1cf commit ee063e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/render/program.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ class Program<Us: UniformBindings> {

const staticUniformsInfo = source.staticUniforms ? getTokenizedAttributesAndUniforms(source.staticUniforms) : [];
const dynamicUniformsInfo = configuration ? configuration.getBinderUniforms() : [];
const allUniformsInfo = new Set(staticUniformsInfo.concat(dynamicUniformsInfo));
// remove duplicate uniforms
const uniformList = staticUniformsInfo.concat(dynamicUniformsInfo);
const allUniformsInfo = [];
for (const uniform of uniformList) {
if (allUniformsInfo.indexOf(uniform) < 0) allUniformsInfo.push(uniform);
}

const defines = configuration ? configuration.defines() : [];
if (showOverdrawInspector) {
Expand Down

0 comments on commit ee063e4

Please sign in to comment.