File tree Expand file tree Collapse file tree
crates/processing_render/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ use crate::{
3737 image:: { Image , ImageTextures } ,
3838} ;
3939
40+ use std:: ptr:: NonNull ;
41+
4042#[ derive( Component , Debug , Clone ) ]
4143pub struct Surface ;
4244
@@ -222,15 +224,15 @@ pub fn create_surface_wayland(
222224 HandleError :: Unavailable ,
223225 ) ) ;
224226 }
225- let window_handle_ptr = NonNull :: new ( window_handle as * mut c_void ) . unwrap ( ) ;
227+ let window_handle_ptr = NonNull :: new ( window_handle as * mut std :: ffi :: c_void ) . unwrap ( ) ;
226228 let window = WaylandWindowHandle :: new ( window_handle_ptr) ;
227229
228230 if display_handle == 0 {
229231 return Err ( error:: ProcessingError :: HandleError (
230232 HandleError :: Unavailable ,
231233 ) ) ;
232234 }
233- let display_handle_ptr = NonNull :: new ( display_handle as * mut c_void ) . unwrap ( ) ;
235+ let display_handle_ptr = NonNull :: new ( display_handle as * mut std :: ffi :: c_void ) . unwrap ( ) ;
234236 let display = WaylandDisplayHandle :: new ( display_handle_ptr) ;
235237
236238 spawn_surface (
You can’t perform that action at this time.
0 commit comments