Normalize warning messages with Nvidia drivers (#12833)

# Objective
There are currently 2 different warning messages that are logged when
resizing on Linux with Nvidia drivers (introduced in
70c69cdd51).
Fixes #12830

## Solution
Generalize both to say:
```Couldn't get swap chain texture. This often happens with the NVIDIA drivers on Linux. It can be safely ignored.```
This commit is contained in:
Jake 2024-04-01 21:56:56 +02:00 committed by GitHub
parent 9790c02e18
commit abd94480ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -341,7 +341,7 @@ pub fn prepare_windows(
Err(wgpu::SurfaceError::Outdated) if is_nvidia() => {
warn_once!(
"Couldn't get swap chain texture. This often happens with \
the Nvidia 550 driver. It can be safely ignored."
the NVIDIA drivers on Linux. It can be safely ignored."
);
}
Err(wgpu::SurfaceError::Outdated) => {