wgpu: Actually, we *do* support opengl on windows now!

This commit is contained in:
Nathan Adams 2024-03-19 22:36:37 +01:00
parent 1d4fd1575b
commit e9afce3103
1 changed files with 2 additions and 2 deletions

View File

@ -1105,8 +1105,8 @@ pub async fn request_adapter_and_device(
let names = get_backend_names(backend);
if names.is_empty() {
"Ruffle requires hardware acceleration, but no compatible graphics device was found (no backend provided?)".to_string()
} else if cfg!(any(windows, target_os = "macos")) {
format!("Ruffle does not support OpenGL on {}.", if cfg!(windows) { "Windows" } else { "macOS" })
} else if cfg!(target_os = "macos") {
"Ruffle does not support OpenGL on macOS.".to_string()
} else {
format!("Ruffle requires hardware acceleration, but no compatible graphics device was found supporting {}", format_list(&names, "or"))
}