Skip to content

Commit 4939ed5

Browse files
committed
Updated builds.
1 parent d78d60d commit 4939ed5

File tree

3 files changed

+99
-81
lines changed

3 files changed

+99
-81
lines changed

build/three.js

+13-4
Original file line numberDiff line numberDiff line change
@@ -14444,7 +14444,7 @@
1444414444
* @author mrdoob / http://mrdoob.com/
1444514445
*/
1444614446

14447-
function WebGLAttributes( gl ) {
14447+
function WebGLAttributes( gl, capabilities ) {
1444814448

1444914449
var buffers = new WeakMap();
1445014450

@@ -14520,8 +14520,17 @@
1452014520

1452114521
} else {
1452214522

14523-
gl.bufferSubData( bufferType, updateRange.offset * array.BYTES_PER_ELEMENT,
14524-
array.subarray( updateRange.offset, updateRange.offset + updateRange.count ) );
14523+
if ( capabilities.isWebGL2 ) {
14524+
14525+
gl.bufferSubData( bufferType, updateRange.offset * array.BYTES_PER_ELEMENT,
14526+
array, updateRange.offset, updateRange.count );
14527+
14528+
} else {
14529+
14530+
gl.bufferSubData( bufferType, updateRange.offset * array.BYTES_PER_ELEMENT,
14531+
array.subarray( updateRange.offset, updateRange.offset + updateRange.count ) );
14532+
14533+
}
1452514534

1452614535
updateRange.count = - 1; // reset range
1452714536

@@ -23640,7 +23649,7 @@
2364023649
info = new WebGLInfo( _gl );
2364123650
properties = new WebGLProperties();
2364223651
textures = new WebGLTextures( _gl, extensions, state, properties, capabilities, utils, info );
23643-
attributes = new WebGLAttributes( _gl );
23652+
attributes = new WebGLAttributes( _gl, capabilities );
2364423653
geometries = new WebGLGeometries( _gl, attributes, info );
2364523654
objects = new WebGLObjects( _gl, geometries, attributes, info );
2364623655
morphtargets = new WebGLMorphtargets( _gl );

0 commit comments

Comments
 (0)