Skip to content

Commit

Permalink
Remove silly comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hakolao committed Jan 22, 2024
1 parent 4556123 commit 065ce5d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/glass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl Glass {
runner_state: &mut RunnerState,
) {
self.app.update(context);
// Close window(s)

if runner_state.request_window_close || context.exit {
for window in runner_state.remove_windows.iter() {
context.windows.remove(window);
Expand All @@ -164,12 +164,10 @@ impl Glass {

self.render(context);

// End of frame
self.app.end_of_frame(context);
}

fn render(&mut self, context: &mut GlassContext) {
// Render
for (_, window) in context.windows.iter() {
match window.surface().get_current_texture() {
Ok(frame) => {
Expand Down

0 comments on commit 065ce5d

Please sign in to comment.