From de471dcb8ceb6e0f55309fff6b8149a686eb60ea Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Wed, 7 Oct 2026 20:51:31 +0200 Subject: [PATCH] Fix rebuildGroundMosaic .then(): WebGL constants via groundGl Inside the Promise.all().then() callback, the WebGL constants (gl.TEXTURE_2D, gl.RGBA, gl.UNSIGNED_BYTE) were still bare 'gl.', not groundGl.*. Fixed. --- vendor/clouds3d.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/clouds3d.js b/vendor/clouds3d.js index bede41d..d4f2de0 100644 --- a/vendor/clouds3d.js +++ b/vendor/clouds3d.js @@ -331,8 +331,8 @@ function rebuildGroundMosaic(centerTileX, centerTileY) { } return Promise.all(promises).then(function() { if (groundTexture && groundGl) { - groundGl.bindTexture(gl.TEXTURE_2D, groundTexture); - groundGl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, groundCanvas); + groundGl.bindTexture(groundGl.TEXTURE_2D, groundTexture); + groundGl.texImage2D(groundGl.TEXTURE_2D, 0, groundGl.RGBA, groundGl.RGBA, groundGl.UNSIGNED_BYTE, groundCanvas); } }); }