mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 14:19:30 -07:00
Making supportsWebGPU more stringent
This commit is contained in:
@@ -7,7 +7,7 @@ document.addEventListener("touchmove", (e) => e.preventDefault(), {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const supportsWebGPU = async () => {
|
const supportsWebGPU = async () => {
|
||||||
return window.GPUQueue != null;
|
return window.GPUQueue != null && navigator.gpu != null && navigator.gpu.getPreferredCanvasFormat != null;
|
||||||
};
|
};
|
||||||
|
|
||||||
document.body.onload = async () => {
|
document.body.onload = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user