Add software as fallback if Vulkan and OpenGL fails (flutter/engine#3725)
This commit is contained in:
@@ -112,7 +112,12 @@ static std::unique_ptr<AndroidSurface> InitializePlatformSurface() {
|
||||
return surface;
|
||||
}
|
||||
|
||||
FTL_CHECK(false) << "Could not initialize either the Vulkan or OpenGL "
|
||||
if (auto surface = InitializePlatformSurfaceSoftware()) {
|
||||
FTL_DLOG(INFO) << "Software surface initialized.";
|
||||
return surface;
|
||||
}
|
||||
|
||||
FTL_CHECK(false) << "Could not initialize either the Vulkan, OpenGL, or Software"
|
||||
"surface backends. Flutter requires a GPU to render.";
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user