瀏覽代碼

Remove `WebGL2ComputeRenderingContext` (#25293)

* Remove `WebGL2ComputeRenderingContext`

* Update package.json
Levi Pesin 2 年之前
父節點
當前提交
c57a18f60d
共有 2 個文件被更改,包括 1 次插入3 次删除
  1. 0 1
      package.json
  2. 1 2
      src/renderers/webgl/WebGLCapabilities.js

+ 0 - 1
package.json

@@ -55,7 +55,6 @@
     },
     "globals": {
       "__THREE_DEVTOOLS__": "readonly",
-      "WebGL2ComputeRenderingContext": "readonly",
       "potpack": "readonly",
       "fflate": "readonly",
       "OIMO": "readonly",

+ 1 - 2
src/renderers/webgl/WebGLCapabilities.js

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