diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-09-11 11:42:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-11 11:42:17 +0200 |
commit | 200b9cde88da485659a6376266af8e9bf7be186f (patch) | |
tree | 552a7fa28a8078e44fb545f8ac6a459d32516bb8 /platform/web/detect.py | |
parent | c658fa8b77eb701ddb504cba14fe2c966b7bb105 (diff) | |
parent | 27f22b29f866d5cd807e70289ab771dabc79207c (diff) | |
download | redot-engine-200b9cde88da485659a6376266af8e9bf7be186f.tar.gz |
Merge pull request #65644 from Faless/web/4.x_misc_alpha_fixes
[Web] Small fixes and enhancements.
Diffstat (limited to 'platform/web/detect.py')
-rw-r--r-- | platform/web/detect.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/web/detect.py b/platform/web/detect.py index e055af8400..08f964db92 100644 --- a/platform/web/detect.py +++ b/platform/web/detect.py @@ -227,3 +227,7 @@ def configure(env): # Add code that allow exiting runtime. env.Append(LINKFLAGS=["-s", "EXIT_RUNTIME=1"]) + + # This workaround creates a closure that prevents the garbage collector from freeing the WebGL context. + # We also only use WebGL2, and changing context version is not widely supported anyway. + env.Append(LINKFLAGS=["-s", "GL_WORKAROUND_SAFARI_GETCONTEXT_BUG=0"]) |