aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-08-15 15:34:30 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-08-15 15:34:30 +0200
commit4c1503dc323fb6ad18a1f73c88ce4e855f3894c8 (patch)
treed29d464b848c5d285858ebb59e9b9a35fb31302c
parentae65b423ddf2be0bb7981eba81366a93c686724f (diff)
downloadglutin-4c1503dc323fb6ad18a1f73c88ce4e855f3894c8.tar.gz
glutin-4c1503dc323fb6ad18a1f73c88ce4e855f3894c8.zip
Win32: no longer fails when calling swap_buffers on a closed window
-rw-r--r--src/win32/mod.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index d8425d2..78d9e96 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -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);
}
}
}