summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Scott <ascott.ca@gmail.com>2024-06-10 12:14:27 -0400
committerAdam Scott <ascott.ca@gmail.com>2024-06-10 12:14:27 -0400
commit5a01c2e954851605659d6e0104a51190bbfa4e4c (patch)
tree5adb5143cc845ccbdb9b11c8232a950ca586ec83
parent5241d30bfa223ed45784e32d8143d20a98a8d862 (diff)
downloadredot-engine-5a01c2e954851605659d6e0104a51190bbfa4e4c.tar.gz
Replace deprecated `USE_WEBGL2` linker flag
-rw-r--r--platform/web/detect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/web/detect.py b/platform/web/detect.py
index c6568625c1..a9be1471ae 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