mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Don't disable the vertex attribute if the location is invalid
This commit is contained in:
parent
e0c22c5534
commit
2727408e7c
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ var WebGLPipeline = new Class({
|
|||
gl.enableVertexAttribArray(location);
|
||||
gl.vertexAttribPointer(location, element.size, element.type, element.normalized, vertexSize, element.offset);
|
||||
}
|
||||
else
|
||||
else if (location !== -1)
|
||||
{
|
||||
gl.disableVertexAttribArray(location);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue