Don't panic inside a panic in Metal
@@ -98,9 +98,11 @@ pub struct Token {
impl Drop for Token {
fn drop(&mut self) {
// poor man's linear type...
+ if !thread::panicking() {
debug_assert!(!self.active);
}
}
+}
impl QueueInner {
pub(crate) fn new(device: &metal::DeviceRef, pool_size: Option<usize>) -> Self {
