You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Properly set HTML5 DisplayServer init error value.
Checked in main.cpp, would cause the engine to not load.
This commit is contained in:
@@ -829,6 +829,8 @@ DisplayServer *DisplayServerJavaScript::create_func(const String &p_rendering_dr
|
|||||||
}
|
}
|
||||||
|
|
||||||
DisplayServerJavaScript::DisplayServerJavaScript(const String &p_rendering_driver, WindowMode p_mode, uint32_t p_flags, const Vector2i &p_resolution, Error &r_error) {
|
DisplayServerJavaScript::DisplayServerJavaScript(const String &p_rendering_driver, WindowMode p_mode, uint32_t p_flags, const Vector2i &p_resolution, Error &r_error) {
|
||||||
|
r_error = OK; // Always succeeds for now.
|
||||||
|
|
||||||
RasterizerDummy::make_current(); // TODO GLES2 in Godot 4.0... or webgpu?
|
RasterizerDummy::make_current(); // TODO GLES2 in Godot 4.0... or webgpu?
|
||||||
#if 0
|
#if 0
|
||||||
EmscriptenWebGLContextAttributes attributes;
|
EmscriptenWebGLContextAttributes attributes;
|
||||||
|
|||||||
Reference in New Issue
Block a user