buffers: fix threads

This commit is contained in:
Victoria Fischer 2024-11-29 18:59:00 +01:00
parent 6fe5fdcc1a
commit 815d1417e0

View File

@ -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();
}