Skip to content

Commit

Permalink
removed out of date comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Garoven committed Jan 23, 2024
1 parent 1a29a46 commit 8cb6024
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions crates/eframe/src/native/glow_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,6 @@ use super::{
*,
};

// Note: that the current Glutin API design tightly couples the GL context with
// the Window which means it's not practically possible to just destroy the
// window and re-create a new window while continuing to use the same GL context.
//
// For now this means it's not possible to support Android as well as we can with
// wgpu because we're basically forced to destroy and recreate _everything_ when
// the application suspends and resumes.
//
// There is work in progress to improve the Glutin API so it has a separate Surface
// API that would allow us to just destroy a Window/Surface when suspending, see:
// https://github.com/rust-windowing/glutin/pull/1435

// ----------------------------------------------------------------------------
// Types:

Expand Down Expand Up @@ -434,7 +422,6 @@ impl WinitApp for GlowWinitApp {
.glutin
.borrow_mut()
.initialize_all_windows(event_loop);

running
} else {
// First resume event. Created our root window etc.
Expand Down Expand Up @@ -1115,7 +1102,6 @@ impl GlutinWindowContext {
viewport.gl_surface = None;
viewport.window = None;
}

if let Some(current) = self.current_gl_context.take() {
log::debug!("context is current, so making it non-current");
self.not_current_gl_context = Some(current.make_not_current()?);
Expand Down

0 comments on commit 8cb6024

Please sign in to comment.