Don't call MakeCurrent(null, null) when destroying
This commit is contained in:
parent
eb330030de
commit
ba7f2a923f
3 changed files with 6 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue