mirror of
https://github.com/storytold/winit.git
synced 2026-11-25 13:50:47 +01:00
Win32: no longer fails when calling swap_buffers on a closed window
This commit is contained in:
1 parent
ae65b423dd
commit
4c1503dc32
1 file changed
+1
-5
+1
-5
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user