Skip to content

Commit

Permalink
Repair broken glVertexAttribIPointer in WebGL 2. (#11742)
Browse files Browse the repository at this point in the history
This regressed when some state tracking was renamed and moved
on May 26 via PR #11225, and the integer variant of
glVertexAttribPointer was overlooked.

google/filament#2856
  • Loading branch information
prideout authored Jul 28, 2020
1 parent 6d88fbc commit bcf65fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library_webgl2.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ var LibraryWebGL2 = {
#if GL_ASSERTIONS
assert(cb, index);
#endif
if (!GL.currArrayBuffer) {
if (!GLctx.currentArrayBufferBinding) {
cb.size = size;
cb.type = type;
cb.normalized = false;
Expand Down

0 comments on commit bcf65fe

Please sign in to comment.