Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/renderers/webgl/WebGLTextures.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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' );

}
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/webgpu/utils/WebGPUPipelineUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
4 changes: 3 additions & 1 deletion src/renderers/webgpu/utils/WebGPUTextureUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

}

Expand Down