Replace get_rendering_device() call to prevent crashes on OpenGL.

And make OpenGL video adapter info align with Vulkan.
This commit is contained in:
MJacred 2023-06-06 23:29:36 +02:00
parent 0a0132ccf4
commit 2c5e2196bd
5 changed files with 13 additions and 10 deletions

View file

@ -4382,7 +4382,7 @@ String EditorNode::_get_system_info() const {
String driver_name = GLOBAL_GET("rendering/rendering_device/driver");
String rendering_method = GLOBAL_GET("rendering/renderer/rendering_method");
const String rendering_device_name = RenderingServer::get_singleton()->get_rendering_device()->get_device_name();
const String rendering_device_name = RenderingServer::get_singleton()->get_video_adapter_name();
RenderingDevice::DeviceType device_type = RenderingServer::get_singleton()->get_video_adapter_type();
String device_type_string;