Update wgpu/src/api/surface_texture.rs

Co-authored-by: Andreas Reich <r_andreas2@web.de>
This commit is contained in:
Aloke Desai 2024-09-11 13:12:10 -04:00 committed by GitHub
parent c321520a82
commit ea67d72262
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,7 +79,7 @@ impl fmt::Display for SurfaceError {
Self::Outdated => "The underlying surface has changed, and therefore the swap chain must be updated", Self::Outdated => "The underlying surface has changed, and therefore the swap chain must be updated",
Self::Lost => "The swap chain has been lost and needs to be recreated", Self::Lost => "The swap chain has been lost and needs to be recreated",
Self::OutOfMemory => "There is no more memory left to allocate a new frame", Self::OutOfMemory => "There is no more memory left to allocate a new frame",
SurfaceError::Other => "Acquiring a texture failed for an unknown reason" Self::Other => "Acquiring a texture failed for an unknown reason"
}) })
} }
} }