Skip to content

Commit 2727408

Browse files
committed
Don't disable the vertex attribute if the location is invalid
1 parent e0c22c5 commit 2727408

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/renderer/webgl/WebGLPipeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ var WebGLPipeline = new Class({
342342
gl.enableVertexAttribArray(location);
343343
gl.vertexAttribPointer(location, element.size, element.type, element.normalized, vertexSize, element.offset);
344344
}
345-
else
345+
else if (location !== -1)
346346
{
347347
gl.disableVertexAttribArray(location);
348348
}

0 commit comments

Comments
 (0)