Skip to content

Commit

Permalink
Merge pull request #79416 from sepTN/fix-copy-system-info
Browse files Browse the repository at this point in the history
Fix rendering driver in Copy System Info for the Compatibility rendering method
  • Loading branch information
YuriSizov committed Jul 18, 2023
2 parents c528f1f + c4b878c commit 79a9e79
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4409,17 +4409,18 @@ String EditorNode::_get_system_info() const {
const int processor_count = OS::get_singleton()->get_processor_count();

// Prettify
if (driver_name == "vulkan") {
driver_name = "Vulkan";
} else if (driver_name == "opengl3") {
driver_name = "GLES3";
}
if (rendering_method == "forward_plus") {
rendering_method = "Forward+";
} else if (rendering_method == "mobile") {
rendering_method = "Mobile";
} else if (rendering_method == "gl_compatibility") {
rendering_method = "Compatibility";
driver_name = GLOBAL_GET("rendering/gl_compatibility/driver");
}
if (driver_name == "vulkan") {
driver_name = "Vulkan";
} else if (driver_name == "opengl3") {
driver_name = "GLES3";
}

// Join info.
Expand Down

0 comments on commit 79a9e79

Please sign in to comment.