You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Store GLES over GL status in the OS to avoid direct renderer includes in the editor.
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user