buffers: fix threads
This commit is contained in:
parent
6fe5fdcc1a
commit
815d1417e0
@ -95,7 +95,7 @@ impl Default for BoundSurface<Arc<Mutex<ShaderBinding>>> {
|
||||
|
||||
#[cfg(feature="threads")]
|
||||
impl Surface for BoundSurface<Arc<Mutex<ShaderBinding>>> {
|
||||
fn rect(&self) -> Rectangle<u8, Virtual> {
|
||||
fn rect(&self) -> Rectangle<Virtual> {
|
||||
let r = self.binding.lock().unwrap();
|
||||
r.rect.clone()
|
||||
}
|
||||
@ -114,7 +114,7 @@ impl Surface for BoundSurface<Arc<Mutex<ShaderBinding>>> {
|
||||
self.binding.lock().unwrap().shader = None;
|
||||
}
|
||||
|
||||
fn set_rect(&mut self, rect: &Rectangle<u8, Virtual>) {
|
||||
fn set_rect(&mut self, rect: &Rectangle<Virtual>) {
|
||||
self.binding.lock().unwrap().rect = rect.clone();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user