From db3f42b3ff40a75704faa3a49ec9a9865eb34d31 Mon Sep 17 00:00:00 2001 From: ilya sheprut Date: Wed, 21 May 2025 23:02:52 +0300 Subject: [PATCH] Use webgl2 instead of webgl Otherwise it brokes on a function `readBuffer`. --- js/gl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/gl.js b/js/gl.js index df0116ac..319492fe 100644 --- a/js/gl.js +++ b/js/gl.js @@ -26,7 +26,7 @@ var blocking_event_loop = false; function init_webgl(version) { if (version == 1) { - gl = canvas.getContext("webgl"); + gl = canvas.getContext("webgl2"); function acquireVertexArrayObjectExtension(ctx) { // Extension available in WebGL 1 from Firefox 25 and WebKit 536.28/desktop Safari 6.0.3 onwards. Core feature in WebGL 2.