diff --git a/src/renderers/webgl/WebGLTextures.js b/src/renderers/webgl/WebGLTextures.js index 49aa5ee6be3ae5..e29b1799cd5422 100644 --- a/src/renderers/webgl/WebGLTextures.js +++ b/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' ); } diff --git a/src/renderers/webgpu/utils/WebGPUPipelineUtils.js b/src/renderers/webgpu/utils/WebGPUPipelineUtils.js index 5b1a2e4c4da2ad..1f08cf0328b3c8 100644 --- a/src/renderers/webgpu/utils/WebGPUPipelineUtils.js +++ b/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(); diff --git a/src/renderers/webgpu/utils/WebGPUTextureUtils.js b/src/renderers/webgpu/utils/WebGPUTextureUtils.js index afb9bd2832ec85..3014d763333ea4 100644 --- a/src/renderers/webgpu/utils/WebGPUTextureUtils.js +++ b/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 }