diff --git a/wgpu/src/backend/web.rs b/wgpu/src/backend/web.rs index c7eb4a8b14..808dafaf86 100644 --- a/wgpu/src/backend/web.rs +++ b/wgpu/src/backend/web.rs @@ -2098,7 +2098,7 @@ impl crate::context::Context for Context { if let Some(dsa) = &desc.depth_stencil_attachment { let depth_stencil_attachment: &::TextureViewData = - downcast_ref(&dsa.view.data); + downcast_ref(dsa.view.data.as_ref()); let mut mapped_depth_stencil_attachment = web_sys::GpuRenderPassDepthStencilAttachment::new(&depth_stencil_attachment.0); if let Some(ref ops) = dsa.depth_ops {