Skip to content

Commit

Permalink
removed check for linux chrome webgpu (#6343)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd committed May 8, 2024
1 parent 37da949 commit bc8d315
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions examples/iframe/utils.mjs
Expand Up @@ -75,11 +75,6 @@ export function clearImports() {
blobUrls.forEach(URL.revokeObjectURL);
}

function isLinuxChrome() {
// Lack of Chrome's WebGPU support on Linux
return navigator.platform.includes('Linux') && navigator.appVersion.includes("Chrome");
}

const DEVICE_TYPES = ['webgpu', 'webgl2'];
export let deviceType = 'webgl2';

Expand All @@ -98,11 +93,6 @@ export function updateDeviceType(config) {
return;
}
if (config.WEBGL_DISABLED) {
if (isLinuxChrome()) {
console.warn('WebGPU chosen but browser is not supported, defaulting to WebGL2');
deviceType = 'webgl2';
return;
}
deviceType = 'webgpu';
return;
}
Expand Down

0 comments on commit bc8d315

Please sign in to comment.