diff options
| author | Bastiaan Olij <mux213@gmail.com> | 2021-09-11 12:08:12 +1000 |
|---|---|---|
| committer | Bastiaan Olij <mux213@gmail.com> | 2021-09-13 18:50:00 +1000 |
| commit | f9849a271777fe48572a542997f58ab339006854 (patch) | |
| tree | ce3b18a4c7c45570bb30aaa5490765b23d9d5c24 /main | |
| parent | bbdfc547cad77a8265592c210f01d5a7f52430ca (diff) | |
| download | redot-engine-f9849a271777fe48572a542997f58ab339006854.tar.gz | |
Add driver types to GD extension initialisation levels
Diffstat (limited to 'main')
| -rw-r--r-- | main/main.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/main/main.cpp b/main/main.cpp index ece194b0f1..a8a1a87140 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2669,18 +2669,19 @@ void Main::cleanup(bool p_force) { //clear global shader variables before scene and other graphics stuff are deinitialized. rendering_server->global_variables_clear(); -#ifdef TOOLS_ENABLED - EditorNode::unregister_editor_types(); -#endif - if (xr_server) { // cleanup now before we pull the rug from underneath... memdelete(xr_server); } + unregister_driver_types(); + +#ifdef TOOLS_ENABLED + EditorNode::unregister_editor_types(); +#endif + ImageLoader::cleanup(); - unregister_driver_types(); unregister_module_types(); unregister_platform_apis(); unregister_scene_types(); |
