mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Improve DisplayServer message for video card drivers failure
And remove leftover duplicated message on Android.
This commit is contained in:
@@ -466,14 +466,15 @@ Vector<String> DisplayServerAndroid::get_rendering_drivers_func() {
|
||||
DisplayServer *DisplayServerAndroid::create_func(const String &p_rendering_driver, DisplayServer::WindowMode p_mode, DisplayServer::VSyncMode p_vsync_mode, uint32_t p_flags, const Vector2i *p_position, const Vector2i &p_resolution, int p_screen, Error &r_error) {
|
||||
DisplayServer *ds = memnew(DisplayServerAndroid(p_rendering_driver, p_mode, p_vsync_mode, p_flags, p_position, p_resolution, p_screen, r_error));
|
||||
if (r_error != OK) {
|
||||
OS::get_singleton()->alert("Your video card driver does not support any of the supported Vulkan versions.", "Unable to initialize Video driver");
|
||||
if (p_rendering_driver == "vulkan") {
|
||||
OS::get_singleton()->alert("Your video card driver does not support the selected Vulkan version.\n"
|
||||
"Please try exporting your game using the gl_compatibility renderer.",
|
||||
"Unable to initialize Video driver");
|
||||
OS::get_singleton()->alert(
|
||||
"Your device seems not to support the required Vulkan version.\n\n"
|
||||
"Please try exporting your game using the 'gl_compatibility' renderer.",
|
||||
"Unable to initialize Vulkan video driver");
|
||||
} else {
|
||||
OS::get_singleton()->alert("Your video card driver does not support OpenGL ES 3.0.",
|
||||
"Unable to initialize Video driver");
|
||||
OS::get_singleton()->alert(
|
||||
"Your device seems not to support the required OpenGL ES 3.0 version.",
|
||||
"Unable to initialize OpenGL video driver");
|
||||
}
|
||||
}
|
||||
return ds;
|
||||
|
||||
Reference in New Issue
Block a user