diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-09-03 15:35:25 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-09-03 16:11:59 +0300 |
commit | d4e78b8db5724e529ae024eb7a97bdc0f350ab21 (patch) | |
tree | 678af10e5877a042afa1e171d41b30c2b1459aea /editor | |
parent | 8120e0324a48190f58616378746d517e4ad40965 (diff) | |
download | redot-engine-d4e78b8db5724e529ae024eb7a97bdc0f350ab21.tar.gz |
Store GLES over GL status in the OS to avoid direct renderer includes in the editor.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_node.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 32e6126225..a780228a95 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -167,10 +167,6 @@ #include "modules/modules_enabled.gen.h" // For gdscript, mono. -#if defined(GLES3_ENABLED) -#include "drivers/gles3/rasterizer_gles3.h" -#endif - EditorNode *EditorNode::singleton = nullptr; static const String EDITOR_NODE_CONFIG_SECTION = "EditorNode"; @@ -5062,18 +5058,16 @@ String EditorNode::_get_system_info() const { driver_name = "Vulkan"; } else if (driver_name == "d3d12") { driver_name = "Direct3D 12"; -#if defined(GLES3_ENABLED) } else if (driver_name == "opengl3_angle") { driver_name = "OpenGL ES 3/ANGLE"; } else if (driver_name == "opengl3_es") { driver_name = "OpenGL ES 3"; } else if (driver_name == "opengl3") { - if (RasterizerGLES3::is_gles_over_gl()) { + if (OS::get_singleton()->get_gles_over_gl()) { driver_name = "OpenGL 3"; } else { driver_name = "OpenGL ES 3"; } -#endif } else if (driver_name == "metal") { driver_name = "Metal"; } |