mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 12:41:30 +11:00
Update piet-gpu/bin/android.rs
Co-authored-by: Raph Levien <raph.levien@gmail.com>
This commit is contained in:
parent
007ec6cdc0
commit
fb952de1f3
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue