Merge pull request #108276 from AThousandShips/fix_rendering_method_select

[Web] Restrict rendering method selection
This commit is contained in:
Thaddeus Crews 2025-07-04 12:39:28 -05:00
commit 3c37a21da8
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -2532,7 +2532,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
default_renderer = renderer_hints.get_slicec(',', 0);
GLOBAL_DEF_RST_BASIC(PropertyInfo(Variant::STRING, "rendering/renderer/rendering_method", PROPERTY_HINT_ENUM, renderer_hints), default_renderer);
GLOBAL_DEF_RST_BASIC("rendering/renderer/rendering_method.mobile", default_renderer_mobile);
GLOBAL_DEF_RST_BASIC("rendering/renderer/rendering_method.web", "gl_compatibility"); // This is a bit of a hack until we have WebGPU support.
GLOBAL_DEF_RST_BASIC(PropertyInfo(Variant::STRING, "rendering/renderer/rendering_method.web", PROPERTY_HINT_ENUM, "gl_compatibility"), "gl_compatibility"); // This is a bit of a hack until we have WebGPU support.
// Default to ProjectSettings default if nothing set on the command line.
if (rendering_method.is_empty()) {