Parcourir la source

fix 32bit index buffer extension not enable automatically when rendering Line

NIX il y a 10 ans
Parent
commit
da8a2feaa5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;

粤ICP备19079148号