Minor cleanup

master
Mark 2023-12-25 18:44:31 -08:00
parent ed03e8a523
commit e2f9d427b5
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
2 changed files with 0 additions and 3 deletions

View File

@ -30,7 +30,6 @@ async fn run(mut game: game::Game) -> Result<()> {
event_loop.run(move |event, _, control_flow| { event_loop.run(move |event, _, control_flow| {
match event { match event {
Event::RedrawRequested(window_id) if window_id == gpu.window().id() => { Event::RedrawRequested(window_id) if window_id == gpu.window().id() => {
gpu.update();
game.update(); game.update();
match gpu.render(&game) { match gpu.render(&game) {
Ok(_) => {} Ok(_) => {}

View File

@ -194,8 +194,6 @@ impl GPUState {
self.update_starfield_buffer(game) self.update_starfield_buffer(game)
} }
pub fn update(&mut self) {}
/// Make a SpriteInstance for each of the game's visible sprites. /// Make a SpriteInstance for each of the game's visible sprites.
/// Will panic if SPRITE_INSTANCE_LIMIT is exceeded. /// Will panic if SPRITE_INSTANCE_LIMIT is exceeded.
/// ///