Fix depth stencil attachment downcast for WebGPU (#3670)

This commit is contained in:
Josh Groves authored and GitHub committed 2023-04-12 16:33:50 +00:00
1 parent f3bf0f782e
commit ee175f909c
1 file changed
+1 -1
+1 -1
View File
@@ -2098,7 +2098,7 @@ impl crate::context::Context for Context {
if let Some(dsa) = &desc.depth_stencil_attachment {
let depth_stencil_attachment: &<Context as crate::Context>::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 {