diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-07-27 13:46:38 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-07-27 14:17:10 +0200 |
commit | 757af6a69f7f2053c60d453c827c691319f6d329 (patch) | |
tree | f6a82796705499b704e4d3ea70a4169fab97ec5c /platform | |
parent | 0cd98ec7e13038d09a77cf821e930be79026f943 (diff) |
Properly set HTML5 DisplayServer init error value.
Checked in main.cpp, would cause the engine to not load.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/javascript/display_server_javascript.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/javascript/display_server_javascript.cpp b/platform/javascript/display_server_javascript.cpp index 2f0a2faa83..4b69ed5814 100644 --- a/platform/javascript/display_server_javascript.cpp +++ b/platform/javascript/display_server_javascript.cpp @@ -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; |