mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
expose-ids: pass the correct field for global ID (#3669)
This commit is contained in:
@@ -58,7 +58,7 @@ impl<T> From<Identified<T>> for ObjectId {
|
||||
// API.
|
||||
core::num::NonZeroU64::new(1).unwrap(),
|
||||
#[cfg(feature = "expose-ids")]
|
||||
identified.1,
|
||||
identified.0,
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -71,7 +71,7 @@ impl<T> From<(Identified<T>, Sendable<T>)> for ObjectId {
|
||||
// API.
|
||||
core::num::NonZeroU64::new(1).unwrap(),
|
||||
#[cfg(feature = "expose-ids")]
|
||||
id.1,
|
||||
id.0,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user