File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ impl Display {
287287
288288 let import = fd. try_clone_to_owned ( ) . map_err ( |_| ErrorKind :: BadParameter ) ?;
289289
290- let attrs: [ egl:: types:: EGLAttrib ; 3 ] =
290+ let attrs: [ egl:: types:: EGLint ; 3 ] =
291291 [ egl:: SYNC_NATIVE_FENCE_FD_ANDROID as _ , import. as_raw_fd ( ) as _ , egl:: NONE as _ ] ;
292292
293293 // SAFETY:
@@ -298,7 +298,7 @@ impl Display {
298298 self . inner . egl . CreateSyncKHR (
299299 * self . inner . raw ,
300300 egl:: SYNC_NATIVE_FENCE_ANDROID ,
301- attrs. as_ptr ( ) . cast ( ) ,
301+ attrs. as_ptr ( ) ,
302302 )
303303 } ;
304304
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ mod example {
6262 assert ! ( sync. client_wait( Some ( Duration :: ZERO ) , false ) . unwrap( ) ) ;
6363
6464 // // By default all new Syncs are not signalled.
65- assert ! ( !sync. is_signalled( ) . unwrap( ) ) ;
65+ // assert!(!sync.is_signalled().unwrap());
6666
6767 if display. extensions ( ) . contains ( "EGL_ANDROID_native_fence_sync" ) {
6868 println ! ( "EGL Android native fence sync is supported" ) ;
@@ -78,7 +78,7 @@ mod example {
7878 let sync_fd = sync. export_sync_fd ( ) . expect ( "Export failed" ) ;
7979
8080 // To show that an exported sync fd can be imported, we will reimport the sync
81- // fd.
81+ // fd we just exported .
8282 let _imported_sync = display. import_sync ( sync_fd. as_fd ( ) ) . expect ( "Import failed" ) ;
8383 }
8484 }
You can’t perform that action at this time.
0 commit comments