Skip to content

Commit

Permalink
remote unnecessary lines in copy attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
dianxiang committed Feb 24, 2016
1 parent 2f0eddc commit b5de31d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
.DS_Store
sample
6 changes: 2 additions & 4 deletions main.js
Expand Up @@ -496,12 +496,10 @@ WebGLRenderingContext.prototype.glpCopyUniforms = function(oldProgram, program)
* Copies attributes from oldProgram to newProgram
*/
WebGLRenderingContext.prototype.glpCopyAttributes = function(oldProgram, program) {
var activeAttributes = this.getProgramParameter(program, this.ACTIVE_ATTRIBUTES);
var activeAttributes = this.getProgramParameter(oldProgram, this.ACTIVE_ATTRIBUTES);

for (var i=0; i < activeAttributes; i++) {
var attribute = this.getActiveAttrib(program, i);
var oldLocation = this.getAttribLocation(oldProgram, attribute.name);
var newLocation = this.getAttribLocation(program, attribute.name);
var attribute = this.getActiveAttrib(oldProgram, i);

this.bindAttribLocation(program, attribute.index, attribute.name);
if (attribute.size > 1) {
Expand Down

0 comments on commit b5de31d

Please sign in to comment.