Skip to content

Commit

Permalink
Make Context::surface_configure errors non-fatal.
Browse files Browse the repository at this point in the history
  • Loading branch information
vorporeal authored and alokedesai committed Jul 8, 2024
1 parent 14a7698 commit cf02eaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu/src/backend/wgpu_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -743,12 +743,12 @@ impl crate::Context for ContextWgpuCore {
surface: &Self::SurfaceId,
surface_data: &Self::SurfaceData,
device: &Self::DeviceId,
_device_data: &Self::DeviceData,
device_data: &Self::DeviceData,
config: &crate::SurfaceConfiguration,
) {
let error = wgc::gfx_select!(device => self.0.surface_configure(*surface, *device, config));
if let Some(e) = error {
self.handle_error_fatal(e, "Surface::configure");
self.handle_error_nolabel(&device_data.error_sink, e, "Surface::configure");
} else {
*surface_data.configured_device.lock() = Some(*device);
}
Expand Down

0 comments on commit cf02eaa

Please sign in to comment.