Properly set HTML5 DisplayServer init error value.

Checked in main.cpp, would cause the engine to not load.
This commit is contained in:
Fabio Alessandrelli 2020-07-27 13:46:38 +02:00
parent 0cd98ec7e1
commit 757af6a69f

View file

@ -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) {
r_error = OK; // Always succeeds for now.
RasterizerDummy::make_current(); // TODO GLES2 in Godot 4.0... or webgpu?
#if 0
EmscriptenWebGLContextAttributes attributes;