From f04fafbb3e03ae97c90d33aa48aac4b3953bfb7a Mon Sep 17 00:00:00 2001 From: grovesNL Date: Wed, 12 Apr 2023 13:47:05 -0230 Subject: [PATCH] Fix depth stencil attachment downcast for WebGPU --- wgpu/src/backend/web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {