Explorar o código

Merge pull request #6619 from nxxcxx/dev

r71 fix 32bit index buffer extension not enable automatically for Line
Ricardo Cabello %!s(int64=10) %!d(string=hai) anos
pai
achega
dc71735b29
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -1244,7 +1244,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 			var type, size;
 
-			if ( index.array instanceof Uint32Array ) {
+			if ( index.array instanceof Uint32Array && extensions.get( 'OES_element_index_uint' ) ) {
 
 				type = _gl.UNSIGNED_INT;
 				size = 4;