Michael Herzog 2 месяцев назад
Родитель
Сommit
f3bb8893ca

+ 2 - 3
src/renderers/webgl/WebGLTextures.js

@@ -24,10 +24,10 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 	try {
 
 		useOffscreenCanvas = typeof OffscreenCanvas !== 'undefined'
-			// eslint-disable-next-line compat/compat
 			&& ( new OffscreenCanvas( 1, 1 ).getContext( '2d' ) ) !== null;
 
-	} catch ( err ) {
+
+	} catch ( err ) { // eslint-disable-line no-unused-vars
 
 		// Ignore any errors
 
@@ -38,7 +38,6 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 		// Use OffscreenCanvas when available. Specially needed in web workers
 
 		return useOffscreenCanvas ?
-			// eslint-disable-next-line compat/compat
 			new OffscreenCanvas( width, height ) : createElementNS( 'canvas' );
 
 	}

+ 1 - 1
src/renderers/webgpu/utils/WebGPUPipelineUtils.js

@@ -271,7 +271,7 @@ class WebGPUPipelineUtils {
 
 					pipelineData.pipeline = await device.createRenderPipelineAsync( pipelineDescriptor );
 
-				} catch ( err ) { }
+				} catch ( err ) { } // eslint-disable-line no-unused-vars
 
 				const errorScope = await device.popErrorScope();
 

+ 3 - 1
src/renderers/webgpu/utils/WebGPUTextureUtils.js

@@ -789,7 +789,9 @@ class WebGPUTextureUtils {
 				}
 			);
 
-		} catch ( _ ) {} // try/catch has been added to fix bad video frame data on certain devices, see #32391
+			// try/catch has been added to fix bad video frame data on certain devices, see #32391
+
+		} catch ( _ ) {} // eslint-disable-line no-unused-vars
 
 	}
 

粤ICP备19079148号