From 1a3dbc3c82753520f73f0c89ae1e3f7f5902fdfc Mon Sep 17 00:00:00 2001 From: Hal Gentz Date: Thu, 31 May 2018 19:54:32 -0600 Subject: [PATCH] Wrap in arc Signed-off-by: Hal Gentz --- src/backend/gl/src/native.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }