-
-
Notifications
You must be signed in to change notification settings - Fork 809
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wgpu: Prevent random crashes on desktop by handling SurfaceErrors pro…
…perly This patch adds proper handling for SurfaceErrors that may happen when calling get_current_texture(), instead of always panicking. This fixes random crashes, e.g. when the GPU took too long to render a frame, or when the surface has unexpectedly changed.
- Loading branch information
Showing
1 changed file
with
51 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters