Skip to content

Commit e729cf7

Browse files
[Web] Restrict rendering method selection
Currently only the compatibility method is supported, this ensures only it can be selected.
1 parent 9b22b41 commit e729cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2532,7 +2532,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
25322532
default_renderer = renderer_hints.get_slicec(',', 0);
25332533
GLOBAL_DEF_RST_BASIC(PropertyInfo(Variant::STRING, "rendering/renderer/rendering_method", PROPERTY_HINT_ENUM, renderer_hints), default_renderer);
25342534
GLOBAL_DEF_RST_BASIC("rendering/renderer/rendering_method.mobile", default_renderer_mobile);
2535-
GLOBAL_DEF_RST_BASIC("rendering/renderer/rendering_method.web", "gl_compatibility"); // This is a bit of a hack until we have WebGPU support.
2535+
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.
25362536

25372537
// Default to ProjectSettings default if nothing set on the command line.
25382538
if (rendering_method.is_empty()) {

0 commit comments

Comments
 (0)