1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00

x11: don't need to ref gl context in window any more

This is now managed by the client application
This commit is contained in:
Wez Furlong 2021-05-08 15:05:07 -07:00
parent 5f59bf25be
commit 35351a97b4

View File

@ -61,7 +61,6 @@ pub(crate) struct XWindowInner {
cursors: CursorInfo,
copy_and_paste: CopyAndPaste,
config: ConfigHandle,
gl_state: Option<Rc<glium::backend::Context>>,
resize_promises: Vec<Promise<Dimensions>>,
}
@ -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![],
}))