Update piet-gpu/bin/android.rs

Co-authored-by: Raph Levien <raph.levien@gmail.com>
This commit is contained in:
Chad Brokaw 2022-07-15 12:49:40 -04:00 committed by GitHub
parent 007ec6cdc0
commit fb952de1f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");