mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[Web] Small fixes and enhancements.
- "Definitive" fix for ENOENT randomly disappearing from emscripten. - Proper shutdown when setup fails. - Re-enable WebGL explicit buffer swap. - Re-enable optional per-pixel transparency. - Add type cast to make closure compiler happy. - Remove emscripten Safari WebGL workaround. - Improve AudioWorklet cleanup.
This commit is contained in:
parent
c658fa8b77
commit
27f22b29f8
7 changed files with 51 additions and 11 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue