aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/mod.rs')
-rw-r--r--src/win32/mod.rs2
1 files changed, 2 insertions, 0 deletions
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()));