Store GLES over GL status in the OS to avoid direct renderer includes in the editor.
This commit is contained in:
parent
8120e0324a
commit
d4e78b8db5
3 changed files with 5 additions and 7 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue