Explorar o código

Fix Copy System Info to copy the correct rendering driver for the Compatibility rendering method

Septian %!s(int64=2) %!d(string=hai) anos
pai
achega
c4b878ccb3
Modificáronse 1 ficheiros con 6 adicións e 5 borrados
  1. 6 5
      editor/editor_node.cpp

+ 6 - 5
editor/editor_node.cpp

@@ -4407,17 +4407,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.