Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
hakolao committed May 13, 2024
1 parent c46f525 commit f62731a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions src/glass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,14 @@ impl Glass {
);

// Run render
let mut buffers = if let Some(other_buffers) =
self.app.render(context, RenderData {
let mut buffers = self
.app
.render(context, RenderData {
encoder: &mut encoder,
window,
frame: &frame,
}) {
other_buffers
} else {
vec![]
};
})
.unwrap_or_default();
buffers.push(encoder.finish());
context.device_context.queue().submit(buffers);

Expand Down
2 changes: 1 addition & 1 deletion src/glass_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub trait GlassApp {
None
}

/// Run each frame for each window after post processing
/// Run each frame for each window after render
fn after_render(&mut self, _context: &GlassContext) {}
/// Run each frame last
fn end_of_frame(&mut self, _context: &mut GlassContext) {}
Expand Down

0 comments on commit f62731a

Please sign in to comment.