Browse Source

Code clean up.

Mr.doob 11 years ago
parent
commit
eeac6cd312
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/renderers/WebGLRenderer.js

+ 4 - 4
src/renderers/WebGLRenderer.js

@@ -2634,9 +2634,9 @@ THREE.WebGLRenderer = function ( parameters ) {
 					}
 
 					// render indexed triangles
-					var type,size;
+					var type, size;
 					
-					if (_glExtensionElementIndexUint && index.array instanceof Uint32Array){
+					if ( _glExtensionElementIndexUint !== null && index.array instanceof Uint32Array ) {
 						
 						type = _gl.UNSIGNED_INT;
 						size = 4;
@@ -2792,9 +2792,9 @@ THREE.WebGLRenderer = function ( parameters ) {
 					}
 
 					// render indexed lines
-					var type,size;
+					var type, size;
 					
-					if (_glExtensionElementIndexUint && index.array instanceof Uint32Array){
+					if ( _glExtensionElementIndexUint !== null && index.array instanceof Uint32Array ){
 						
 						type = _gl.UNSIGNED_INT;
 						size = 4;