From cd3fc3075a43dbde326720964e29aa28c6be4a17 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Tue, 12 Aug 2014 21:21:06 +0200 Subject: Fix #22 Thanks to @Anthiste --- src/win32/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/win32/mod.rs') diff --git a/src/win32/mod.rs b/src/win32/mod.rs index e3920a8..d8425d2 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -191,6 +191,8 @@ impl Window { /// See the docs if the crate root file. pub fn swap_buffers(&self) { unsafe { + ffi::glFlush(); + if ffi::SwapBuffers(self.hdc) == 0 { use std::os; fail!("{}", os::error_string(os::errno())); -- cgit v1.2.3