提交 eeac6cd3 编写于 作者: M Mr.doob

Code clean up.

上级 3be3c258
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册