null===c?console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays."):c.drawElementsInstancedANGLE(e,a.attributes.index.array.length,g,0,a.maxInstancedCount)}};
break;case"WEBGL_compressed_texture_pvrtc":d=a.getExtension("WEBGL_compressed_texture_pvrtc")||a.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:d=a.getExtension(c)}null===d&&console.warn("THREE.WebGLRenderer: "+c+" extension not supported.");returnb[c]=d}};
a.bindBuffer(d,e.__webglBuffer);varf=a.STATIC_DRAW;if(cinstanceofTHREE.DynamicBufferAttribute||cinstanceofTHREE.InstancedBufferAttribute&&!0===c.dynamic||cinstanceofTHREE.InterleavedBuffer&&!0===c.dynamic)f=a.DYNAMIC_DRAW;a.bufferData(d,c.array,f);e.version=c.version}elsee.version!==c.version&&(a.bindBuffer(d,e.__webglBuffer),void0===c.updateRange||-1===c.updateRange.count?a.bufferSubData(d,0,c.array):0===c.updateRange.count?console.error("THREE.WebGLObjects.updateBuffer: using updateRange for THREE.DynamicBufferAttribute and marked as needsUpdate but count is 0, ensure you are using set methods or updating manually."):