Explorar o código

Remove `WebGL2ComputeRenderingContext` (#25293)

* Remove `WebGL2ComputeRenderingContext`

* Update package.json
Levi Pesin %!s(int64=2) %!d(string=hai) anos
pai
achega
c57a18f60d
Modificáronse 2 ficheiros con 1 adicións e 3 borrados
  1. 0 1
      package.json
  2. 1 2
      src/renderers/webgl/WebGLCapabilities.js

+ 0 - 1
package.json

@@ -55,7 +55,6 @@
     },
     },
     "globals": {
     "globals": {
       "__THREE_DEVTOOLS__": "readonly",
       "__THREE_DEVTOOLS__": "readonly",
-      "WebGL2ComputeRenderingContext": "readonly",
       "potpack": "readonly",
       "potpack": "readonly",
       "fflate": "readonly",
       "fflate": "readonly",
       "OIMO": "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';
 	let precision = parameters.precision !== undefined ? parameters.precision : 'highp';
 	const maxPrecision = getMaxPrecision( precision );
 	const maxPrecision = getMaxPrecision( precision );