diff --git a/player/src/lib.rs b/player/src/lib.rs index 47799ef17..36d6f5305 100644 --- a/player/src/lib.rs +++ b/player/src/lib.rs @@ -154,7 +154,8 @@ impl GlobalPlay for wgc::hub::Global { A::CreateBuffer { id, desc } => { let label = Label::new(&desc.label); self.device_maintain_ids::(device); - self.device_create_buffer::(device, &desc.map_label(|_| label.as_ptr()), id); + self.device_create_buffer::(device, &desc.map_label(|_| label.as_ptr()), id) + .unwrap(); } A::DestroyBuffer(id) => { self.buffer_destroy::(id); diff --git a/wgpu-core/src/device/mod.rs b/wgpu-core/src/device/mod.rs index 6498f7b92..ab6d02f51 100644 --- a/wgpu-core/src/device/mod.rs +++ b/wgpu-core/src/device/mod.rs @@ -22,6 +22,7 @@ use hal::{ window::{PresentationSurface as _, Surface as _}, }; use parking_lot::{Mutex, MutexGuard}; +use thiserror::Error; use wgt::{BufferAddress, BufferSize, InputStepMode, TextureDimension, TextureFormat}; use std::{ @@ -383,7 +384,7 @@ impl Device { self_id: id::DeviceId, desc: &wgt::BufferDescriptor