We are wrapping extension call but ctx is already created and function polyfilled. We need wrap gl call instead.
// TODO: what about webgl2? -> not relevant anymore, as we are wrapping gl call
// old code
//wrapGLExtCall(
//gl.getExtension('ANGLE_instanced_arrays'),
//'drawElementsInstancedANGLE',
//(args) => {
wrapGLCall('drawElementsInstanced', (args) => {
We are wrapping extension call but
ctx
is already created and function polyfilled. We need wrapgl
call instead.