Skip to content

Commit

Permalink
fix(webgl): add missing braces
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Apr 11, 2020
1 parent 9f0d7f0 commit 5e6d5bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/webgl/src/shader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ export class Shader implements IShader {
}

unbind() {
let shaderAttrib: ShaderAttrib;
for (let id in this.attribs) {
if ((shaderAttrib = this.attribs[id]))
if ((shaderAttrib = this.attribs[id])) {
this.gl.disableVertexAttribArray(shaderAttrib.loc);
}
}
Expand Down

0 comments on commit 5e6d5bf

Please sign in to comment.