Skip to content

Commit

Permalink
fix(webgl): disableVertexAttribArray in Shader.unbind
Browse files Browse the repository at this point in the history
  • Loading branch information
stwind committed Apr 11, 2020
1 parent 9a23fa2 commit d3eab37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/webgl/src/shader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ export class Shader implements IShader {
}

unbind() {
for (let id in this.attribs) {
if ((shaderAttrib = this.attribs[id]))
this.gl.disableVertexAttribArray(shaderAttrib.loc);
}
}
this.gl.useProgram(null);
return true;
}
Expand Down

0 comments on commit d3eab37

Please sign in to comment.