diff --git a/src/backend/gl/src/native.rs b/src/backend/gl/src/native.rs index 45995497948..6e3cd8220f0 100644 --- a/src/backend/gl/src/native.rs +++ b/src/backend/gl/src/native.rs @@ -151,7 +151,7 @@ pub(crate) enum DescSetBindings { #[derive(Clone, Debug)] pub struct DescriptorSet { layout: Vec, - pub(crate) bindings: RefCell>, + pub(crate) bindings: Arc>>, } #[derive(Debug)] @@ -165,7 +165,7 @@ impl pso::DescriptorPool for DescriptorPool { { layouts.into_iter().map(|layout| Ok(DescriptorSet { layout: layout.borrow().clone(), - bindings: Arc::new(RwLock::new(Vec::new())), + bindings: Arc::new(RefCell::new(Vec::new())), })).collect() }