diff --git a/anvil/src/render.rs b/anvil/src/render.rs index 6346799a71be..3f675161df93 100644 --- a/anvil/src/render.rs +++ b/anvil/src/render.rs @@ -27,7 +27,8 @@ use crate::{ smithay::backend::renderer::element::render_elements! { pub CustomRenderElements where - R: ImportAll + ImportMem; + R: ImportAll + ImportMem, + ::TextureId: Send; Pointer=PointerRenderElement, Surface=WaylandSurfaceRenderElement, #[cfg(feature = "debug")] @@ -51,7 +52,8 @@ impl std::fmt::Debug for CustomRenderElements { } smithay::backend::renderer::element::render_elements! { - pub OutputRenderElements where R: ImportAll + ImportMem; + pub OutputRenderElements where R: ImportAll + ImportMem, + ::TextureId: Send; Space=SpaceRenderElements, Window=Wrap, Custom=CustomRenderElements, @@ -201,7 +203,7 @@ pub fn render_output<'a, 'd, R>( ) -> Result, OutputDamageTrackerError> where R: Renderer + ImportAll + ImportMem, - R::TextureId: Clone + 'static, + R::TextureId: Clone + Send + 'static, { let (elements, clear_color) = output_elements(output, space, custom_elements, renderer, show_window_preview); diff --git a/anvil/src/udev.rs b/anvil/src/udev.rs index 3bcc9f2e0534..d437f0ead58b 100644 --- a/anvil/src/udev.rs +++ b/anvil/src/udev.rs @@ -1814,7 +1814,7 @@ where fn initial_render(surface: &mut SurfaceData, renderer: &mut R) -> Result<(), SwapBuffersError> where R: Renderer + ImportEgl + ImportDmaWl + ImportMemWl + ExportMem + Bind + Offscreen, - ::TextureId: Clone + 'static, + ::TextureId: Clone + Send + 'static, SwapBuffersError: From<::Error>, { surface