fix: Compiling anvil without egl

This commit is contained in:
Victor Brekenfeld 2021-05-11 20:34:58 +02:00
parent 1839756f68
commit 5245595037
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
#[cfg(feature = "egl")] #[cfg(feature = "egl")]
use std::{cell::RefCell, rc::Rc, sync::mpsc::Sender}; use std::{cell::RefCell, rc::Rc};
use std::sync::mpsc::Sender;
#[cfg(feature = "udev")] #[cfg(feature = "udev")]
use smithay::backend::renderer::{Renderer, Texture}; use smithay::backend::renderer::{Renderer, Texture};
@ -90,6 +91,7 @@ impl BufferUtils {
Ok(BufferTextures { Ok(BufferTextures {
buffer, buffer,
textures: HashMap::new(), textures: HashMap::new(),
callbacks: HashMap::new(),
}) })
} }
} }
@ -130,7 +132,7 @@ impl<T: Texture> BufferTextures<T> {
} }
#[cfg(not(feature = "egl"))] #[cfg(not(feature = "egl"))]
pub fn load_texture<'a, R: Renderer<Texture = T>>( pub fn load_texture<'a, R: Renderer<TextureId = T>>(
&'a mut self, &'a mut self,
id: u64, id: u64,
renderer: &mut R, renderer: &mut R,