Skip to content

Commit

Permalink
Remove excessive glEnableVertexAttribArray call
Browse files Browse the repository at this point in the history
  • Loading branch information
StrandedKitty committed Aug 13, 2023
1 parent 2d50388 commit d2b2e33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/renderer/webgl2-renderer/WebGL2Attribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ export default class WebGL2Attribute implements AbstractAttribute {
this.gl.vertexAttribDivisor(location, this.divisor);
}

this.gl.enableVertexAttribArray(location);

this.buffer.unbind();
}
}
Expand All @@ -92,4 +90,4 @@ export default class WebGL2Attribute implements AbstractAttribute {

return WebGL2Constants.UNSIGNED_BYTE;
}
}
}

0 comments on commit d2b2e33

Please sign in to comment.