From 4c1503dc323fb6ad18a1f73c88ce4e855f3894c8 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Fri, 15 Aug 2014 15:34:30 +0200 Subject: Win32: no longer fails when calling swap_buffers on a closed window --- src/win32/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 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); } } } -- cgit v1.2.3