From fb952de1f3aa0f2772914c65745658b2e6462570 Mon Sep 17 00:00:00 2001 From: Chad Brokaw Date: Fri, 15 Jul 2022 12:49:40 -0400 Subject: [PATCH] Update piet-gpu/bin/android.rs Co-authored-by: Raph Levien --- piet-gpu/bin/android.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piet-gpu/bin/android.rs b/piet-gpu/bin/android.rs index 9f59117..168aca1 100644 --- a/piet-gpu/bin/android.rs +++ b/piet-gpu/bin/android.rs @@ -55,7 +55,7 @@ fn my_main() -> Result<(), Error> { let height = window.height() as usize; let handle = get_handle(window); let instance = Instance::new(InstanceFlags::PRESENT)?; - let surface = instance.surface(&handle)?; + let surface = unsafe { instance.surface(&handle)? }; gfx_state = Some(GfxState::new(&instance, Some(&surface), width, height)?); } else { println!("native window is sadly none");