mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 02:13:36 +00:00
Fix emscripten 3.1.51 breaking change about *glGetProcAddress()
(cherry picked from commit 5922ac0fb1)
This commit is contained in:
parent
9bcdcccb36
commit
32fcc88c23
1 changed files with 5 additions and 0 deletions
|
|
@ -237,6 +237,11 @@ def configure(env):
|
|||
|
||||
# This setting just makes WebGL 2 APIs available, it does NOT disable WebGL 1.
|
||||
env.Append(LINKFLAGS=["-s", "USE_WEBGL2=1"])
|
||||
# Breaking change since emscripten 3.1.51
|
||||
# https://github.com/emscripten-core/emscripten/blob/main/ChangeLog.md#3151---121323
|
||||
if cc_semver >= (3, 1, 51):
|
||||
# Enables the use of *glGetProcAddress()
|
||||
env.Append(LINKFLAGS=["-s", "GL_ENABLE_GET_PROC_ADDRESS=1"])
|
||||
|
||||
# Do not call main immediately when the support code is ready.
|
||||
env.Append(LINKFLAGS=["-s", "INVOKE_RUN=0"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue