blade: refactor the atlas to not own the command encoder
This commit is contained in:
parent
c000d2e16b
commit
04e49dc493
3 changed files with 54 additions and 42 deletions
|
@ -244,7 +244,7 @@ impl LinuxWindowState {
|
|||
|
||||
pub fn configure(&self, bounds: Bounds<i32>) {
|
||||
let mut resize_args = None;
|
||||
let mut do_move = false;
|
||||
let do_move;
|
||||
{
|
||||
let mut inner = self.inner.lock();
|
||||
let old_bounds = mem::replace(&mut inner.bounds, bounds);
|
||||
|
@ -393,7 +393,7 @@ impl PlatformWindow for LinuxWindow {
|
|||
}
|
||||
|
||||
fn sprite_atlas(&self) -> sync::Arc<dyn crate::PlatformAtlas> {
|
||||
let mut inner = self.0.inner.lock();
|
||||
let inner = self.0.inner.lock();
|
||||
inner.renderer.atlas().clone()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue