mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 13:31:29 +11:00
Win32: no longer fails when calling swap_buffers on a closed window
This commit is contained in:
parent
ae65b423dd
commit
4c1503dc32
|
@ -192,11 +192,7 @@ impl Window {
|
|||
pub fn swap_buffers(&self) {
|
||||
unsafe {
|
||||
ffi::glFlush();
|
||||
|
||||
if ffi::SwapBuffers(self.hdc) == 0 {
|
||||
use std::os;
|
||||
fail!("{}", os::error_string(os::errno()));
|
||||
}
|
||||
ffi::SwapBuffers(self.hdc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue