Skip to content

Commit

Permalink
Wrap in arc
Browse files Browse the repository at this point in the history
Signed-off-by: Hal Gentz <[email protected]>
  • Loading branch information
goddessfreya committed Jun 1, 2018
1 parent 1c070cb commit 1a3dbc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/gl/src/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ pub(crate) enum DescSetBindings {
#[derive(Clone, Debug)]
pub struct DescriptorSet {
layout: Vec<pso::DescriptorSetLayoutBinding>,
pub(crate) bindings: RefCell<Vec<DescSetBindings>>,
pub(crate) bindings: Arc<RefCell<Vec<DescSetBindings>>>,
}

#[derive(Debug)]
Expand All @@ -165,7 +165,7 @@ impl pso::DescriptorPool<Backend> 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()
}

Expand Down

0 comments on commit 1a3dbc3

Please sign in to comment.