Small cleanup

Fix winit and android targets.
This commit is contained in:
Raph Levien 2021-08-11 13:10:37 -07:00
parent 05e81acebc
commit c08e6c300d
2 changed files with 5 additions and 13 deletions

View file

@ -4,7 +4,7 @@
//!
//! Requires the [cargo-apk] tool.
//! [cargo-apk]: https://crates.io/crates/cargo-apk
/*
use raw_window_handle::android::AndroidHandle;
use raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
@ -107,12 +107,9 @@ impl GfxState {
let mut ctx = PietGpuRenderContext::new();
render_scene(&mut ctx);
let n_paths = ctx.path_count();
let n_pathseg = ctx.pathseg_count();
let n_trans = ctx.pathseg_count();
let scene = ctx.get_scene_buf();
let renderer = Renderer::new(&session, scene, n_paths, n_pathseg, n_trans)?;
let mut renderer = Renderer::new(&session)?;
renderer.upload_render_ctx(&mut ctx)?;
let submitted: Option<SubmittedCmdBuf> = None;
let current_frame = 0;
@ -175,5 +172,3 @@ impl GfxState {
}
}
}
*/
fn main() {}

View file

@ -37,12 +37,9 @@ fn main() -> Result<(), Error> {
let mut ctx = PietGpuRenderContext::new();
render_scene(&mut ctx);
let n_paths = ctx.path_count();
let n_pathseg = ctx.pathseg_count();
let n_trans = ctx.trans_count();
let scene = ctx.get_scene_buf();
let renderer = Renderer::new(&session, scene, n_paths, n_pathseg, n_trans)?;
let mut renderer = Renderer::new(&session)?;
renderer.upload_render_ctx(&mut ctx)?;
let mut submitted: Option<SubmittedCmdBuf> = None;
let mut last_frame_idx = 0;