mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 22:00:04 -04:00
Don't call MakeCurrent(null, null) when destroying
This commit is contained in:
@@ -59,7 +59,8 @@ unsafe impl Sync for Window {}
|
||||
impl Drop for XWindow {
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
ffi::glx::MakeCurrent(self.display, 0, ptr::null());
|
||||
// we don't call MakeCurrent(0, 0) because we are not sure that the context
|
||||
// is still the current one
|
||||
ffi::glx::DestroyContext(self.display, self.context);
|
||||
|
||||
if self.is_fullscreen {
|
||||
|
||||
Reference in New Issue
Block a user