Win32: no longer fails when calling swap_buffers on a closed window

This commit is contained in:
Tomaka17 2014-08-15 15:34:30 +02:00
parent ae65b423dd
commit 4c1503dc32

View file

@ -192,11 +192,7 @@ impl Window {
pub fn swap_buffers(&self) { pub fn swap_buffers(&self) {
unsafe { unsafe {
ffi::glFlush(); ffi::glFlush();
ffi::SwapBuffers(self.hdc);
if ffi::SwapBuffers(self.hdc) == 0 {
use std::os;
fail!("{}", os::error_string(os::errno()));
}
} }
} }
} }