This commit is contained in:
xacrimon 2021-09-10 21:44:35 +02:00
parent da849115b5
commit a1bfbbbfab
No known key found for this signature in database
GPG Key ID: FE567F46AFBDF3AE

View File

@ -271,7 +271,7 @@ impl crate::Surface<super::Api> for super::Surface {
if let Some(drawable) = render_layer.next_drawable() {
Ok((drawable.to_owned(), drawable.texture().to_owned()))
} else {
return Err(crate::SurfaceError::Other("failed to allocate drawable due to metal resource exhaustion"));
Err(crate::SurfaceError::Other("failed to allocate drawable due to metal resource exhaustion"))
}
})?;