From 5932380032adceb7cbf94bdc38f9833cecf0cce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Wed, 12 Apr 2023 18:12:06 +0200 Subject: [PATCH] pass the correct field for global ID --- wgpu/src/backend/web.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu/src/backend/web.rs b/wgpu/src/backend/web.rs index c7eb4a8b14..c60ea66e45 100644 --- a/wgpu/src/backend/web.rs +++ b/wgpu/src/backend/web.rs @@ -58,7 +58,7 @@ impl From> for ObjectId { // API. core::num::NonZeroU64::new(1).unwrap(), #[cfg(feature = "expose-ids")] - identified.1, + identified.0, ) } } @@ -71,7 +71,7 @@ impl From<(Identified, Sendable)> for ObjectId { // API. core::num::NonZeroU64::new(1).unwrap(), #[cfg(feature = "expose-ids")] - id.1, + id.0, ) } }