diff --git a/gfx-glyph/examples/depth.rs b/gfx-glyph/examples/depth.rs index b9e4301..6df4b38 100644 --- a/gfx-glyph/examples/depth.rs +++ b/gfx-glyph/examples/depth.rs @@ -53,9 +53,6 @@ impl winit::application::ApplicationHandler for WinitApp { } struct App { - window: winit::window::Window, - gl_surface: glutin::surface::Surface, - gl_context: glutin::context::PossiblyCurrentContext, device: gfx_device_gl::Device, encoder: gfx::Encoder, color_view: gfx::handle::RenderTargetView, @@ -64,6 +61,9 @@ struct App { view_size: PhysicalSize, interval: spin_sleep_util::Interval, reporter: spin_sleep_util::RateReporter, + gl_surface: glutin::surface::Surface, + gl_context: glutin::context::PossiblyCurrentContext, + window: winit::window::Window, } impl App { diff --git a/gfx-glyph/examples/paragraph.rs b/gfx-glyph/examples/paragraph.rs index e73e48d..6d3a2da 100644 --- a/gfx-glyph/examples/paragraph.rs +++ b/gfx-glyph/examples/paragraph.rs @@ -69,9 +69,6 @@ impl winit::application::ApplicationHandler for WinitApp { } struct App { - window: winit::window::Window, - gl_surface: glutin::surface::Surface, - gl_context: glutin::context::PossiblyCurrentContext, device: gfx_device_gl::Device, encoder: gfx::Encoder, color_view: gfx::handle::RenderTargetView, @@ -85,6 +82,9 @@ struct App { font_size: f32, zoom: f32, angle: f32, + gl_surface: glutin::surface::Surface, + gl_context: glutin::context::PossiblyCurrentContext, + window: winit::window::Window, } impl App { diff --git a/gfx-glyph/examples/performance.rs b/gfx-glyph/examples/performance.rs index 08f9408..d24d6fa 100644 --- a/gfx-glyph/examples/performance.rs +++ b/gfx-glyph/examples/performance.rs @@ -63,9 +63,6 @@ impl winit::application::ApplicationHandler for WinitApp { } struct App { - window: winit::window::Window, - gl_surface: glutin::surface::Surface, - gl_context: glutin::context::PossiblyCurrentContext, device: gfx_device_gl::Device, encoder: gfx::Encoder, color_view: gfx::handle::RenderTargetView, @@ -75,6 +72,9 @@ struct App { reporter: spin_sleep_util::RateReporter, text: String, font_size: f32, + gl_surface: glutin::surface::Surface, + gl_context: glutin::context::PossiblyCurrentContext, + window: winit::window::Window, } impl App { diff --git a/gfx-glyph/examples/pre_positioned.rs b/gfx-glyph/examples/pre_positioned.rs index c64b314..73f03ce 100644 --- a/gfx-glyph/examples/pre_positioned.rs +++ b/gfx-glyph/examples/pre_positioned.rs @@ -55,9 +55,6 @@ impl winit::application::ApplicationHandler for WinitApp { } struct App { - window: winit::window::Window, - gl_surface: glutin::surface::Surface, - gl_context: glutin::context::PossiblyCurrentContext, device: gfx_device_gl::Device, encoder: gfx::Encoder, color_view: gfx::handle::RenderTargetView, @@ -69,6 +66,9 @@ struct App { glyphs: Vec, width: f32, height: f32, + gl_surface: glutin::surface::Surface, + gl_context: glutin::context::PossiblyCurrentContext, + window: winit::window::Window, } impl App { diff --git a/gfx-glyph/examples/varied.rs b/gfx-glyph/examples/varied.rs index 9014e40..5f9b3fc 100644 --- a/gfx-glyph/examples/varied.rs +++ b/gfx-glyph/examples/varied.rs @@ -57,9 +57,6 @@ impl winit::application::ApplicationHandler for WinitApp { } struct App { - window: winit::window::Window, - gl_surface: glutin::surface::Surface, - gl_context: glutin::context::PossiblyCurrentContext, device: gfx_device_gl::Device, encoder: gfx::Encoder, color_view: gfx::handle::RenderTargetView, @@ -72,6 +69,9 @@ struct App { italic_font: FontId, serif_font: FontId, mono_font: FontId, + gl_surface: glutin::surface::Surface, + gl_context: glutin::context::PossiblyCurrentContext, + window: winit::window::Window, } impl App { diff --git a/glyph-brush/examples/draw_cache_guts.rs b/glyph-brush/examples/draw_cache_guts.rs index 6f4d666..f58a03d 100644 --- a/glyph-brush/examples/draw_cache_guts.rs +++ b/glyph-brush/examples/draw_cache_guts.rs @@ -74,9 +74,6 @@ impl winit::application::ApplicationHandler for WinitApp { } struct App { - window: Window, - gl_surface: Surface, - gl_ctx: PossiblyCurrentContext, glyph_brush: GlyphBrush>, texture: GlGlyphTexture, text_pipe: GlTextPipe, @@ -90,6 +87,9 @@ struct App { dimensions: PhysicalSize, fps: f64, title: String, + gl_surface: Surface, + gl_ctx: PossiblyCurrentContext, + window: Window, } impl App { diff --git a/glyph-brush/examples/opengl.rs b/glyph-brush/examples/opengl.rs index f1c3175..3840995 100644 --- a/glyph-brush/examples/opengl.rs +++ b/glyph-brush/examples/opengl.rs @@ -97,9 +97,6 @@ impl winit::application::ApplicationHandler for WinitApp { } struct App { - window: Window, - gl_surface: Surface, - gl_ctx: PossiblyCurrentContext, glyph_brush: GlyphBrush>, texture: GlGlyphTexture, text_pipe: GlTextPipe, @@ -109,6 +106,9 @@ struct App { reporter: spin_sleep_util::RateReporter, max_image_dimension: u32, dimensions: PhysicalSize, + gl_surface: Surface, + gl_ctx: PossiblyCurrentContext, + window: Window, } impl App {