Skip to content

Commit

Permalink
BufferGeometry: Remove MaxIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Sep 22, 2017
1 parent 08b53c7 commit 4f98376
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
3 changes: 0 additions & 3 deletions docs/api/core/BufferGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ <h3>[property:Boolean isBufferGeometry]</h3>
You should not change this, as it used internally for optimisation.
</div>

<h3>[property:Integer MaxIndex]</h3>
<div>Maximum number of vertices allowed, set to *65535*.</div>

<h3>[property:Object morphAttributes]</h3>
<div>
Hashmap of [page:BufferAttribute]s holding details of the geometry's [page:Geometry.morphTargets morphTargets].
Expand Down
2 changes: 0 additions & 2 deletions src/core/BufferGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ function BufferGeometry() {

}

BufferGeometry.MaxIndex = 65535;

Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, {

isBufferGeometry: true,
Expand Down
8 changes: 1 addition & 7 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { WebGLProperties } from './webgl/WebGLProperties.js';
import { WebGLState } from './webgl/WebGLState.js';
import { WebGLCapabilities } from './webgl/WebGLCapabilities.js';
import { WebVRManager } from './webvr/WebVRManager.js';
import { BufferGeometry } from '../core/BufferGeometry.js';
import { WebGLExtensions } from './webgl/WebGLExtensions.js';
import { Vector3 } from '../math/Vector3.js';
import { WebGLClipping } from './webgl/WebGLClipping.js';
Expand Down Expand Up @@ -258,14 +257,9 @@ function WebGLRenderer( parameters ) {
extensions.get( 'OES_texture_half_float' );
extensions.get( 'OES_texture_half_float_linear' );
extensions.get( 'OES_standard_derivatives' );
extensions.get( 'OES_element_index_uint' );
extensions.get( 'ANGLE_instanced_arrays' );

if ( extensions.get( 'OES_element_index_uint' ) ) {

BufferGeometry.MaxIndex = 4294967296;

}

utils = new WebGLUtils( _gl, extensions );

capabilities = new WebGLCapabilities( _gl, extensions, parameters );
Expand Down

0 comments on commit 4f98376

Please sign in to comment.