GeneralWidget: Recommend default video backend in tooltip

Recommend the platform's default video backend in the Backend tooltip
instead of always recommending OpenGL.
This commit is contained in:
Dentomologist
2024-11-03 11:35:47 -08:00
parent 7b8610f4ea
commit 47a86d920f
3 changed files with 11 additions and 2 deletions

View File

@ -228,6 +228,12 @@ std::string VideoBackendBase::GetDefaultBackendConfigName()
return default_backend ? default_backend->GetName() : "";
}
std::string VideoBackendBase::GetDefaultBackendDisplayName()
{
auto* const default_backend = GetDefaultVideoBackend();
return default_backend ? default_backend->GetDisplayName() : "";
}
const std::vector<std::unique_ptr<VideoBackendBase>>& VideoBackendBase::GetAvailableBackends()
{
static auto s_available_backends = [] {