From 5a01c2e954851605659d6e0104a51190bbfa4e4c Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Mon, 10 Jun 2024 12:14:27 -0400 Subject: [PATCH] Replace deprecated `USE_WEBGL2` linker flag --- platform/web/detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/web/detect.py b/platform/web/detect.py index c6568625c19a..a9be1471ae3a 100644 --- a/platform/web/detect.py +++ b/platform/web/detect.py @@ -204,7 +204,7 @@ def configure(env: "SConsEnvironment"): if env["opengl3"]: env.AppendUnique(CPPDEFINES=["GLES3_ENABLED"]) # This setting just makes WebGL 2 APIs available, it does NOT disable WebGL 1. - env.Append(LINKFLAGS=["-s", "USE_WEBGL2=1"]) + env.Append(LINKFLAGS=["-s", "MAX_WEBGL_VERSION=2"]) # Allow use to take control of swapping WebGL buffers. env.Append(LINKFLAGS=["-s", "OFFSCREEN_FRAMEBUFFER=1"]) # Breaking change since emscripten 3.1.51