浏览代码

Updated builds.

Mr.doob 2 年之前
父节点
当前提交
cbbb778c3a
共有 5 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      build/three.cjs
  2. 1 1
      build/three.js
  3. 0 0
      build/three.min.js
  4. 1 1
      build/three.module.js
  5. 0 0
      build/three.module.min.js

+ 1 - 1
build/three.cjs

@@ -15346,7 +15346,7 @@ function WebGLCapabilities( gl, extensions, parameters ) {
 
 
 	}
 	}
 
 
-	const isWebGL2 = typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext;
+	const isWebGL2 = typeof WebGL2RenderingContext !== 'undefined' && gl.constructor.name === 'WebGL2RenderingContext';
 
 
 	let precision = parameters.precision !== undefined ? parameters.precision : 'highp';
 	let precision = parameters.precision !== undefined ? parameters.precision : 'highp';
 	const maxPrecision = getMaxPrecision( precision );
 	const maxPrecision = getMaxPrecision( precision );

+ 1 - 1
build/three.js

@@ -15351,7 +15351,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 
 		}
 		}
 
 
-		const isWebGL2 = typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext;
+		const isWebGL2 = typeof WebGL2RenderingContext !== 'undefined' && gl.constructor.name === 'WebGL2RenderingContext';
 
 
 		let precision = parameters.precision !== undefined ? parameters.precision : 'highp';
 		let precision = parameters.precision !== undefined ? parameters.precision : 'highp';
 		const maxPrecision = getMaxPrecision( precision );
 		const maxPrecision = getMaxPrecision( precision );

文件差异内容过多而无法显示
+ 0 - 0
build/three.min.js


+ 1 - 1
build/three.module.js

@@ -15344,7 +15344,7 @@ function WebGLCapabilities( gl, extensions, parameters ) {
 
 
 	}
 	}
 
 
-	const isWebGL2 = typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext;
+	const isWebGL2 = typeof WebGL2RenderingContext !== 'undefined' && gl.constructor.name === 'WebGL2RenderingContext';
 
 
 	let precision = parameters.precision !== undefined ? parameters.precision : 'highp';
 	let precision = parameters.precision !== undefined ? parameters.precision : 'highp';
 	const maxPrecision = getMaxPrecision( precision );
 	const maxPrecision = getMaxPrecision( precision );

文件差异内容过多而无法显示
+ 0 - 0
build/three.module.min.js


部分文件因为文件数量过多而无法显示