Valid prototypes for bufferData are:
void bufferData(GLenum target, GLsizeiptr size, GLenum usage);
void bufferData(GLenum target, ArrayBufferView data, GLenum usage);
void bufferData(GLenum target, ArrayBuffer data, GLenum usage);
However, if you use the last one, WebGL Inspector fails on the following line:
var sourceView = new DataView(arg, 0, source.byteLength);
The exception is that source is undefined. Wrapping the ArrayBuffer passed to bufferData with a typed array works.
Valid prototypes for bufferData are:
However, if you use the last one, WebGL Inspector fails on the following line:
The exception is that source is undefined. Wrapping the ArrayBuffer passed to bufferData with a typed array works.