diff --git a/core/os/os.h b/core/os/os.h index c3923e08c5e..bc8e2bcaa71 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -69,9 +69,6 @@ class OS { bool restart_on_exit = false; List restart_commandline; - // for the user interface we keep a record of the current display driver - // so we can retrieve the rendering drivers available - int _display_driver_id = -1; String _current_rendering_driver_name; String _current_rendering_method; bool _is_gles_over_gl = false; @@ -119,8 +116,6 @@ protected: virtual void initialize() = 0; virtual void initialize_joypads() = 0; - void set_display_driver_id(int p_display_driver_id) { _display_driver_id = p_display_driver_id; } - virtual void set_main_loop(MainLoop *p_main_loop) = 0; virtual void delete_main_loop() = 0; @@ -144,8 +139,6 @@ public: String get_current_rendering_method() const { return _current_rendering_method; } bool get_gles_over_gl() const { return _is_gles_over_gl; } - int get_display_driver_id() const { return _display_driver_id; } - virtual Vector get_video_adapter_driver_info() const = 0; virtual bool get_user_prefers_integrated_gpu() const { return false; } diff --git a/main/main.cpp b/main/main.cpp index ca8fcb6e393..bab0dfebaf2 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2973,10 +2973,6 @@ Error Main::setup2(bool p_show_boot_logo) { } } - // Store this in a globally accessible place, so we can retrieve the rendering drivers - // list from the display driver for the editor UI. - OS::get_singleton()->set_display_driver_id(display_driver_idx); - Vector2i *window_position = nullptr; Vector2i position = init_custom_pos; if (init_use_custom_pos) {