From 35351a97b47dc525dae0d3ddca4a96e32dc3982b Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 8 May 2021 15:05:07 -0700 Subject: [PATCH] x11: don't need to ref gl context in window any more This is now managed by the client application --- window/src/os/x11/window.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/window/src/os/x11/window.rs b/window/src/os/x11/window.rs index e39c06c61..f8271a458 100644 --- a/window/src/os/x11/window.rs +++ b/window/src/os/x11/window.rs @@ -61,7 +61,6 @@ pub(crate) struct XWindowInner { cursors: CursorInfo, copy_and_paste: CopyAndPaste, config: ConfigHandle, - gl_state: Option>, resize_promises: Vec>, } @@ -114,7 +113,6 @@ impl XWindowInner { )?) })?; - self.gl_state.replace(gl_state.clone()); Ok(gl_state) } @@ -736,7 +734,6 @@ impl XWindow { dpi: conn.default_dpi(), copy_and_paste: CopyAndPaste::default(), cursors: CursorInfo::new(&conn), - gl_state: None, config: config.clone(), resize_promises: vec![], }))