Merge pull request #92988 from adamscott/max-webgl-version

Replace deprecated `USE_WEBGL2` linker flag
This commit is contained in:
Rémi Verschelde 2024-06-11 10:49:01 +02:00
commit 78a96c26a9
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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