Skip to content

Commit

Permalink
webgl.js: Fix so that all calls to checkInstancedVertexAttribState
Browse files Browse the repository at this point in the history
uses the correct arguments.

With that, all tests cases pass again.
  • Loading branch information
Erkaman committed Jul 24, 2016
1 parent 1a5d4eb commit 83e7506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webgl.js
Expand Up @@ -747,7 +747,7 @@ function createANGLEInstancedArrays (context) {
if (count > 0) {
maxIndex = (count + first - 1) >>> 0
}
if (checkInstancedVertexAttribState(maxIndex, primCount)) {
if (checkInstancedVertexAttribState(context, maxIndex, primCount)) {
return _drawArraysInstanced.call(
context, mode, first, reducedCount, primCount)
}
Expand Down

0 comments on commit 83e7506

Please sign in to comment.