fix(web): use gl_compatibility renderer for Godot 4.5 web export

Godot 4.5 web export requires renderer/rendering_method="gl_compatibility";
"compatibility" and "mobile" are both invalid for the Web platform.

- project.godot: switch renderer from "mobile" to "gl_compatibility",
  update config/features to "GL Compatibility", add mobile override
- Dockerfile.web: fix sed to replace any renderer value with
  "gl_compatibility" (handles forward_plus/mobile/any future value)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-02-28 07:59:26 -05:00
co-authored by Claude Happy
parent 4795df6182
commit 9cc4dc7ad3
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ html/focus_canvas_on_start=true
html/experimental_virtual_keyboard=false
progressive_web_app/enabled=false
CFG
RUN sed -i 's#renderer/rendering_method="mobile"#renderer/rendering_method="compatibility"#' project.godot \
RUN sed -i 's#renderer/rendering_method="[^"]*"#renderer/rendering_method="gl_compatibility"#g' project.godot \
&& mkdir -p .godot/editor build/web \
&& godot --headless --path /project --export-release "HTML5" build/web/index.html
+3 -2
View File
@@ -11,7 +11,7 @@ config_version=5
[application]
config/name="Origin-Client"
config/features=PackedStringArray("4.5", "Mobile")
config/features=PackedStringArray("4.5", "GL Compatibility")
config/icon="res://icon.svg"
run/main_scene="res://scenes/login/LoginScreen.tscn"
@@ -27,4 +27,5 @@ pointing/emulate_touch_from_mouse=true
[rendering]
renderer/rendering_method="mobile"
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"