From aee790bf4b54b2c9f02e5d869424daa87c290efc Mon Sep 17 00:00:00 2001 From: Rezmason Date: Sun, 28 Aug 2022 23:04:38 -0700 Subject: [PATCH] Making supportsWebGPU more stringent --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 36eaeb6..dca7bd6 100644 --- a/js/main.js +++ b/js/main.js @@ -7,7 +7,7 @@ document.addEventListener("touchmove", (e) => e.preventDefault(), { }); const supportsWebGPU = async () => { - return window.GPUQueue != null; + return window.GPUQueue != null && navigator.gpu != null && navigator.gpu.getPreferredCanvasFormat != null; }; document.body.onload = async () => {