From 1a768bcd90e9955098a9d6343037b7139b6ed57f Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 10 Jul 2026 13:32:56 -0700 Subject: [PATCH] Reduce WebGL canvas size on test page to prevent crashing on iOS. --- test/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.html b/test/index.html index d3fbac9..d59485c 100644 --- a/test/index.html +++ b/test/index.html @@ -29,7 +29,7 @@ SPDX-License-Identifier: GPL-3.0-or-later const glSize = (canvas => { const gl = canvas.getContext('webgl2') const MAX_VIEWPORT_DIMS = gl?.getParameter(gl.MAX_VIEWPORT_DIMS) ?? [0x1000, 0x1000] - const size = Math.min(0x2000, ...MAX_VIEWPORT_DIMS) + const size = Math.min(0x1000, ...MAX_VIEWPORT_DIMS) canvas.height = canvas.width = size return gl?.drawingBufferHeight < gl?.drawingBufferWidth ? gl?.drawingBufferHeight : gl?.drawingBufferWidth })(new OffscreenCanvas(0, 0)) -- 2.52.0